How to check status of pods in kubernetes

Check status of pods in kubernetes.

To check status of a pod in kubernetes cluster. Connect to master node and execute below command.

Below command will give status of all pods from default namespace.

kubectl get pods

If you like to check the status of pods in system namespace, execute below command.

kubectl get pods --all-namespaces

If you like to check the status of pods and node it is running on execute below command:

kubectl get pods -o wide

or

kubectl get pods --all-namespaces -o wide

Leave a Comment

Scroll to Top