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"?
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).
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.
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.
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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With