Menu
Coddy logo textTech

Listing Pods

Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 4 of 45.

To see the Pods in your cluster, run:

kubectl get pods

Each row is one Pod: its NAME, how many of its containers are READY (1/1 means one of one), its STATUS, how many times it was restarted and its AGE.

Right after kubectl run, a Pod shows ContainerCreating while the image is pulled and the container starts. A moment later the status is Running, which is what you want to see.

Add -o wide for more columns, including the Pod's IP address inside the cluster and the NODE it landed on:

kubectl get pods -o wide
challenge icon

Challenge

Beginner

Start a Pod named web from the nginx image, then list the Pods to see it Running.

Try it yourself

Terminal
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Introduction to Kubernetes

Practice on your own: Terminal playground