CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Init Containers and Startup Order

Init containers run to completion, one at a time, before any app container starts. Use two of them to prepare a file and impose a delay, watch the Pod sit in Init while they work, and see the app container read what the first one wrote.

Workloads Guide 31 of 103 Beginner

Written against the versions above. Timings depend on how quickly images are already cached on the node.

Any cluster does for this one.
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. Two init containers and an app that depends on them

  2. Wait for them, then read each log separately

  3. Init containers are Completed, not Running

  4. Clean up

Official sources