Kubernetes Capstone

Kubernetes Curriculum ยท Kubernetes Lab Guide

Goal

Deploy and operate a small web/API workload with a background worker and queue in a disposable cluster. A simplified Loom-style job service is an optional theme; no existing Loom implementation is assumed. A small example application is enough: the goal is Kubernetes practice rather than finishing a separate product.

Architecture to explain

  • API Deployment plus an internal Service.
  • Worker Deployment consuming bounded jobs from a queue.
  • Configuration through a ConfigMap and dummy credentials through Secret references.
  • Readiness/startup/liveness appropriate to each workload; resource requests and limits.
  • One persistent data exercise using a PVC, with a backup/restore separate from Pod replacement.
  • Initial access by port-forwarding; routing controller as a later extension.

A queue with multiple worker consumers does not require one Kubernetes Job per application-level request. Explain the difference between the two job concepts.

Milestones

  • Run the basic workload and show a successful request and processed job.
  • Delete a worker Pod and observe recovery; explain application retry/idempotency needs.
  • Change configuration and document exactly which workloads reload or restart.
  • Break a selector, image reference, or probe; diagnose from evidence and repair it.
  • Show a denied permission and one verified restricted network path on a supporting CNI.
  • Write disposable data, recreate the consumer, and verify it survives; separately restore a backup.
  • Roll out a new version and roll back; describe effects not covered by the rollback.
  • Optionally add HPA with a measured, limited load and the needed metrics pipeline.
  • Package manifests or a small Helm chart and explain how GitOps would reconcile them.
  • Recreate the lab from versioned manifests and document cleanup.

Deliverables

Keep manifests in a suitable code repository or attach a small reviewed sample to the topic notes. In the vault, record an architecture diagram, version list, reproducible runbook, failure diary, resource observations, and links to evidence. Do not store cluster credentials or real data.

Completion check

Mark complete only when you can reproduce the setup, explain the object relationships without the diagram, diagnose the injected failures, and identify the limitations of the local environment. Advanced control-plane and custom-controller modules can follow independently.