CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

The Downward API

Inject a Pod's own name, node and IP as environment variables, mount its labels as files, then find that a 50m CPU request arrives as the number 1 and that the files update while the variables never do.

Configuration and Secrets Guide 38 of 103 Intermediate

Written against the versions above. The divisor default is the trap in this guide: resource values round up to whole units unless you say otherwise.

Any cluster does.
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. Six values a container cannot otherwise know

  2. The same information as files

  3. Files update, variables do not

Official sources