What's the meaning of "READY=2/2" output by command "kubectl get pod $yourpod"

workhardcc picture workhardcc · Sep 29, 2016 · Viewed 10.9k times · Source
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"?

Answer

Radek 'Goblin' Pieczonka picture Radek 'Goblin' Pieczonka · Sep 29, 2016

it 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 less containers ready in pod then their total number (ie. 1/2) hence the whole pod will not be considered ready.