Command

Kubernetes Show Pod Labels Command

The Kubernetes command to show pod labels is kubectl get pods --show-labels.

Quick Answer

Command
kubectl get pods --show-labels
KubernetesCommand

Show Pod Labels

Type this command
kubectl get pods --show-labels

Lists pods together with their labels.

Learn More

How to show pod labels in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl get pods --show-labels, replace any placeholders, and run it.

Kubernetes Show Pod Labels Command

Run kubectl get pods --show-labels.

Related Commands

Frequently asked questions

What is the Kubernetes command to show pod labels?

Run kubectl get pods --show-labels.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify