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

Jonas
  • 121,568
  • 97
  • 310
  • 388
workhardcc
  • 1,270
  • 3
  • 12
  • 21

1 Answers1

111

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.

Radek 'Goblin' Pieczonka
  • 21,554
  • 7
  • 52
  • 48
  • flawless answer! – Gaurav May 27 '21 at 06:55
  • 4
    Thanks for this. Interestingly K8s official reference doesn't have any description or explanation of the output. Seems they expect it to be intuitive. https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get – Akshay Hiremath Feb 08 '22 at 21:04