CertGrid CertGrid
Concepts·Certified Kubernetes Administrator

Pods: The Basic Deployment Unit

Kubernetes does not run containers, it runs Pods. Write one as YAML, see what the API server fills in that you did not, put two containers in one Pod and prove they share an address and a volume, then watch what happens when you delete it.

Foundations Guide 4 of 103 Beginner

Written against the versions above. UIDs, resourceVersions, timestamps and pod addresses are generated per run. The manifests are the part to copy.

Run against the four-node cluster. The scheduler chose the node in every example.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. The smallest thing you can run

  2. See what the API server added

  3. Write the manifest yourself

  4. Labels are the addressing system

  5. Two containers, one Pod

  6. Prove they share the volume, and that readOnly means it

  7. One address for the whole Pod

  8. A bare Pod does not come back

  9. Clean up

Official sources