Black Friday · 27 Nov 2026

Up to 90% off selected certifications.

One time only offer for a very precious career goal. Limited coupons, waitlist first.

Back to lesson: Manage Rollouts, Pauses and Rollbacks

Free lab · CKAD Prep Program · Module 3: Application deployment

Config and secrets

25 min hands-on · Core

Browser Kubernetes (Killercoda 1-node) or Play-with-Kubernetes; no local installs.

Two ways to do this lab: in your browser on Killercoda (free, no install), or on Play-with-Kubernetes as a free practice field. The Killercoda button opens in a new tab; this study page stays here. Killercoda runs one free scenario at a time: if you see a waiting queue, close other Killercoda tabs and wait a minute.

Objectives

  • Build ConfigMaps from literals and files
  • Wire secrets without ever printing them to the terminal
  • Prove the app sees the injected values from inside
  1. Step 1

    ConfigMap two ways

    Create one ConfigMap from `--from-literal` and one from a file. Mount the first as env, the second as a volume. Exec in and read both back.

  2. Step 2

    Secret hygiene

    Create a Secret, mount it as env, and verify the app reads it while you never `echo` the value. Practice `stringData` for authoring and base64 only for reading fixtures.

How to confirm it worked

  • Both ConfigMaps consumed two different ways, read back from inside
  • Secret value used by the app, never printed by you