简体   繁体   English

命令“kubectl get pod $yourpod”输出的“READY=2/2”是什么意思

[英]What's the meaning of “READY=2/2” output by command “kubectl get pod $yourpod”

kubectl get pod run-sh-1816639685-xejyk 
NAME                      READY     STATUS    RESTARTS   AGE
run-sh-1816639685-xejyk   2/2       Running   0          26m

What's the meaning of "READY=2/2"? “READY=2/2”是什么意思? The same with "1/1"?和“1/1”一样吗?

it shows how many containers in a pod are considered ready.它显示了一个 pod 中有多少容器被认为是就绪的。 You can have some containers starting faster then others or having their readiness checks not yet fulfilled (or still in initial delay).您可以让一些容器比其他容器启动得更快,或者它们的就绪检查尚未完成(或仍处于初始延迟)。 In such cases there will be less containers ready in pod then their total number (ie. 1/2) hence the whole pod will not be considered ready.在这种情况下,pod 中准备好的容器会少于它们的总数(即 1/2),因此整个 pod 不会被认为是准备好的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM