Command

Kubernetes List Pods in All Namespaces Command

The Kubernetes command to list pods in all namespaces is kubectl get pods --all-namespaces.

Quick Answer

Command
kubectl get pods --all-namespaces
KubernetesCommand

List Pods in All Namespaces

Type this command
kubectl get pods --all-namespaces

Lists all pods in every namespace.

Tip: The -A flag is the short form of --all-namespaces.

Learn More

How to list pods in all namespaces in Kubernetes

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

Tip: The -A flag is the short form of --all-namespaces.

Kubernetes List Pods in All Namespaces Command

Run kubectl get pods --all-namespaces.

Related Commands

Frequently asked questions

What is the Kubernetes command to list pods in all namespaces?

Run kubectl get pods --all-namespaces.

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