kuberneteskubectl

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? The same with 1/1?


Solution

  • The "Ready" column shows how many containers in a pod are considered ready.

    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 fewer containers ready in the pod than the total number (e.g. 1/2) hence the whole pod will not be considered ready.