Introspecting Pods
Let's look at some of the ways to examine the Pod.
We'll cover the following
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 info:
-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
with the -o yaml
flag. The output is snipped for the course, but notice how it’s divided into two main parts:
spec
status
Playground
Use the following terminal to test all the commands from this lesson.
Get hands-on with 1400+ tech skills courses.