Easily view Kubernetes pod assignment

2/8/2016

Is there any command I can run to easily see which pods are assigned to which node? As I mess around with resource requests and limits, it would be very helpful to visualize how pods have been assigned to cluster members.

-- kgx
kubernetes

2 Answers

2/8/2019

The command used to get the information about a pod is :

kubectl get pods

in order to get the details of the node it is assigned to we can use the -o flag which is used to format the output. The command will be :

kubectl get pods -o wide

you can also describe the node to get info about the pods in it:

kubectl describe nodes 
-- Manya Tripathi
Source: StackOverflow

2/8/2016

What about the -o wide flag of kubectl get?

-- Antoine Cotten
Source: StackOverflow