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

KubernetesKubectl

Kubernetes Problem Overview


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"?

Kubernetes Solutions


Solution 1 - Kubernetes

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionworkhardccView Question on Stackoverflow
Solution 1 - KubernetesRadek 'Goblin' PieczonkaView Answer on Stackoverflow