ConfigMaps, Secrets & StatefulSets Lab
Set up a real ConfigMap and Secret for the TaskFlow backend, deploy PostgreSQL as a StatefulSet with persistent storage, and compare your manifests against the production originals.
Lab Overview
🛠Lab from the Platform Engineering Bootcamp. Used in Week 8. Bootcamp landing page: https://academy.tekanaid.com/bootcamps/platform-engineering-bootcamp Parent course(s):
- Week 8: Kubernetes Fundamentals (slug: kubernetes-fundamentals)
Continues directly from last week's k8s-deployments-services-scaling lab: the real TaskFlow FastAPI backend, cloned fresh and built from its own Dockerfile, starts this lab with a hardcoded `WORKERS` value on the Pod template. You'll externalize that, and the rest of the app's real settings from `backend/.env.example`, into a ConfigMap, then move `DATABASE_URL` and `SECRET_KEY` into a Secret. You'll deploy PostgreSQL as a StatefulSet with a PersistentVolumeClaim, the same real infrastructure the TaskFlow repo ships ahead of the database code that will use it in a later bootcamp week, and deploy Redis as an ordinary Deployment to see the contrast between stateful and stateless workloads firsthand.
You'll test configuration reloads and data persistence across pod restarts using real, verifiable checks (live environment variables and database queries, not a fictional health endpoint), and finish by revealing the real production ConfigMap, Secret, and StatefulSet manifests from the canonical TaskFlow repo to compare against what you built.
What You'll Learn
Create Kubernetes ConfigMaps and Secrets to externalize a real application's configuration from its container image
Deploy PostgreSQL as a StatefulSet with a PersistentVolumeClaim and verify data survives pod restarts
Inject ConfigMaps and Secrets into a Deployment as environment variables
Distinguish between stateful and stateless workloads and choose the appropriate Kubernetes controller
Compare handwritten Kubernetes manifests against real production originals in the same repo
Prerequisites
Completion of the Deployments, Services & Scaling Lab (k8s-deployments-services-scaling)
Basic familiarity with kubectl, Deployments, Services, and YAML manifests
Technologies Covered
Choose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).
Pro
All courses, with lab scripts to run on your own machine
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Full access to all courses
- Lab scripts to download and run on your own machine (hosted labs not included)
- Progress tracking
- Certificate of completion
- Community access
- Bootcamp participation
- New content access
Premium
Full access, including unlimited hosted labs
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Everything in Pro
- Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
- Lab AI Assistant
- Accelerator bootcamps with live office hours
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.
Browse CoursesJust exploring? Start free, no account needed
Three free ways to start. All bridge into the paid Premium catalog when you're ready.
Not ready to commit? The crash course is email-only. No academy account required.
Ready to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now