...

/

Introspecting Pods

Introspecting Pods

Look at some of the ways to examine the Pod.

Let’s look at some of the main ways we’ll use kubectl to monitor and inspect Pods.

kubectl get

We’ve already run a kubectl get pods command and seen that it returns a single line of basic info. However, the following flags get us a lot more information:

  • -o wide gives a few more columns but is still a single line of output.

  • -o yaml gets us everything Kubernetes knows about the object.

The following example shows the output of a kubectl get pods ...