Command
Kubernetes List Pods Command
The Kubernetes command to list pods is kubectl get pods.
Quick Answer
- Command
kubectl get pods
KubernetesCommand
List Pods
Type this command
kubectl get pods
Lists all pods in the namespace.
How to list pods in Kubernetes
- Open the terminal or command interface for Kubernetes.
- Type kubectl get pods, replace any placeholders, and run it.
Kubernetes List Pods Command
Run kubectl get pods.
Frequently asked questions
What is the Kubernetes command to list pods?
Run kubectl get pods.
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