![](/img/trans.png)
[英]Use client-go to simulate 'kubectl wait' for a pod to be ready
[英]Kubectl wait for one pod of a statefulset to be READY?
要等待某个 pod 完成,命令是
kubectl wait --for=condition=Ready pod/pod-name
同样,我想等待 statefulset 中的任何一个 pod 准备就绪。 我试过下面的命令没有用,
kubectl wait --for=condition=Ready statefulset/statefulset-name
命令选项应该是什么样的?
我使用了以下内容,它对我有用
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.