Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 593
workhardcc Avatar asked Sep 29 '16 07:09

workhardcc


People also ask

What does ready mean in kubectl get pods?

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).

What is kubectl get pods?

8 months ago. by Kalsoom Bibi. Kubectl is a Kubernetes command-line configuration tool that interacts with a Kubernetes API server. Kubernetes objects can easily be created, updated, and as well as destroyed using Kubectl.

What is the output of the command kubectl get all?

Using kubectl get all Using the kubectl get all command we can list down all the pods, services, statefulsets, etc. in a namespace but not all the resources are listed using this command. Hence, if you want to see the pods, services and statefulsets in a particular namespace then you can use this command.

What does kubectl get do?

Kubectl is a command line tool used to run commands against Kubernetes clusters. It does this by authenticating with the Master Node of your cluster and making API calls to do a variety of management actions. If you're just getting started with Kubernetes, prepare to be spending a lot of time with kubectl!


1 Answers

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.

like image 66
Radek 'Goblin' Pieczonka Avatar answered Oct 12 '22 15:10

Radek 'Goblin' Pieczonka