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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 30, 2020: SIG CLI docs - guide changes (d705a6d)