Skip to main content

8. ConfigMaps, Secrets & resource management

Externalising config, injecting as env/volume, requests/limits, resource quotas.

⏱ ≈ 25 min this module · 📚 ≈ 6.9 h full track

🔒 Unlock this course to read the material and run the labs.

See options to unlock →
🔒 The written material unlocks with the course.
🧪 Hands-on lab Medium · 160 XP · 25min

Goal

Feed a Pod its configuration from a ConfigMap and a Secret as environment variables.

Requirements (your default namespace, lab)

  • A ConfigMap app-config with key APP_MODE=production
  • A Secret app-secret with key API_KEY=s3cr3t
  • A Pod app (image busybox:1.36, command that sleeps) whose container gets APP_MODE from the ConfigMap and API_KEY from the Secret as env vars
  • The Pod must be Running

🔒 Unlock the course to run this lab.