[英]Kubectl wait for one pod of a statefulset to be READY?
To wait for a certain pod to be completed the command is要等待某个 pod 完成,命令是
kubectl wait --for=condition=Ready pod/pod-name
Similarly I want to wait for any one pod in the statefulset to be ready.同样,我想等待 statefulset 中的任何一个 pod 准备就绪。 I tried the command below which did not work,
我试过下面的命令没有用,
kubectl wait --for=condition=Ready statefulset/statefulset-name
What should the command options look like?命令选项应该是什么样的?
我使用了以下内容,它对我有用
kubectl wait -l statefulset.kubernetes.io/pod-name=activemq-0 --for=condition=ready pod --timeout=-1s
kubectl rollout status --watch --timeout=600s statefulset/name-of-statefulset
来自https://github.com/kubernetes/kubernetes/issues/79606#issuecomment-779779928
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.