Open kong62 opened 3 years ago
Can you elaborate on why you need it to be in parallel?
When the cluster has been in a crash after an avalanche( a lot of nodes crash), I deleted the statefulset and then re-created it, so that pod started one by one, pod0 will not be ready because it is looking for other members, but other members must start pod0 successfully before starting.
# kubectl get pod
NAME READY STATUS RESTARTS AGE
cassandra-cassandra-dc1-dc1-rack1-0 0/2 CrashLoopBackOff 5 4d7h
cassandra-cassandra-dc1-dc1-rack1-1 2/2 Running 7 4d7h
cassandra-cassandra-dc1-dc1-rack1-2 1/2 Running 4 4d7h
cassandra-cassandra-dc1-dc1-rack1-3 0/2 CrashLoopBackOff 11 4d7h
cassandra-cassandra-dc1-dc1-rack1-4 0/2 CrashLoopBackOff 4 4d7h
cassandra-cassandra-dc1-dc1-rack1-5 0/2 CrashLoopBackOff 8 4d7h
# kubectl delete -f example-dc.yaml
# kubectl apply -f example-dc.yaml
I kept getting an error when I redeployed because sts cannot create pods in parallel I need podManagementPolicy: Parallel, but see github code commit: