Search code examples
kuberneteskubectl

kubectl get deployments output differ from this in documentation


When I run this command

kubectl get deployments

at my Linux Ubuntu 18 machine, I got different output than expected (according to documentation).

Expected: enter image description here

Actual:

enter image description here

Of course, I am not talking about values, I am talking about names of labels.

[EDIT]

My k8s version: enter image description here


Solution

  • This is just an old output format. The newer output you're getting below contains all the same information; the "READY" field is a combination of the old "DESIRED" and "CURRENT".

    It's showing as 4/5 in your output to indicate 4 pods ready/current, and 5 pods desired.

    Hope this helps.