Open 13567436138 opened 9 months ago
Error from server (BadRequest): error when creating "sts-nginx.yaml": StatefulSet in version "v1" cannot be handled as a StatefulSet: strict decoding error: unknown field "spec.ordinals" kube-apiserver版本不够高,手动改image可以么,不会冲突把
Ordinals feature of Statefulset is Beta at kubernetes v1.27, so if you want to use this feature by default which requires k8s v1.27, I think you have found the solution. @13567436138
/remove-kind feature /kind question
Seems that the issue is that the replicas (5) didn't split as expected. Am I right? What @liangyuanpeng is talking about is the start ordinal feature.
What would you like to be added:
Why is this needed:
root@karmada-02-a:~# kubectl get pod NAME READY STATUS RESTARTS AGE objectstorage-controller-7dff56f8fc-jvp4w 1/1 Running 1 (24h ago) 46h test 1/1 Running 11 (24h ago) 14d web-0 1/1 Running 0 7m31s web-1 1/1 Running 0 4m14s web-2 1/1 Running 0 3m38s web-3 1/1 Running 0 3m22s web-4 1/1 Running 0 2m34s
root@karmada-03-a:~# kubectl get pod NAME READY STATUS RESTARTS AGE test 1/1 Running 5 (24h ago) 9d web-0 1/1 Running 0 2m56s web-1 1/1 Running 0 2m27s web-2 1/1 Running 0 103s web-3 1/1 Running 0 66s web-4 1/1 Running 0 28s
两个集群调度了同样的副本,而不是weighted