show labels

Print out all labels on each Resource in a single column (last).

Print out all labels on each Resource in a single column (last).

Command

kubectl get deployment --show-labels

Output

NAME      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE       LABELS
nginx     1         1         1            1           7m        app=nginx

Last modified September 30, 2020: SIG CLI docs - guide changes (d705a6d)