Kubectl wait for one pod of a statefulset to be READY?

3/16/2020

To wait for a certain pod to be completed the command is

kubectl wait --for=condition=Ready pod/pod-name

Similarly I want to wait for any one pod in the statefulset to be ready. I tried the command below which did not work,

kubectl wait --for=condition=Ready statefulset/statefulset-name

What should the command options look like?

-- agirlwithnoname
kubectl
kubernetes
kubernetes-pod
kubernetes-statefulset

0 Answers