Command

Kubernetes Filter Running Pods by Field Command

The Kubernetes command to filter running pods by field is kubectl get pods --field-selector=status.phase=Running.

Quick Answer

Command
kubectl get pods --field-selector=status.phase=Running
KubernetesCommand

Filter Running Pods by Field

Type this command
kubectl get pods --field-selector=status.phase=Running

Lists only pods whose status phase is Running.

Learn More

How to filter running pods by field in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl get pods --field-selector=status.phase=Running, replace any placeholders, and run it.

Kubernetes Filter Running Pods by Field Command

Run kubectl get pods --field-selector=status.phase=Running.

Related Commands

Frequently asked questions

What is the Kubernetes command to filter running pods by field?

Run kubectl get pods --field-selector=status.phase=Running.

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