easykubectl

List pods matching a specific label selector to verify a deployment's pods

command

kubectl get pods -l app=APP_LABEL

also accepted

kubectl get pods -l

Command breakdown

Part of the Kubernetes CLI (kubectl) — Deployments category.

kubectlgetpods-lapp=APP_LABEL
FlagPurpose
-lBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →