StackMonsters

Kubernetes Course · 05

Kubernetes Foundations

You build one app, Monster Market, from a single Pod to a stateful, scheduled, locked-down service behind an Ingress. Then you break it and fix it, chapter by chapter, until the last chapter hands you the whole thing broken.

14
chapters
217
lessons & labs
CKA / CKAD
exam-aligned
Beginner
no experience needed

The map

14 chapters covering workloads, networking, storage, security and troubleshooting.

Chapter 1 is free. Finish each chapter to unlock the next one.

  1. 01

    Containers and Pods

    Run a container on a cluster, read what it tells you

    Free
    1. 1Run Your First PodLab3 min
    2. 2What Is a Container4 min
    3. 3Pull the Right TagLab4 min
    4. 4What Is a Pod4 min
    5. 5Two Pods, Two AddressesLab4 min
    6. 6Pod Status5 min
    7. 7Read the Status ColumnLab4 min
    8. 8Describe a Pod5 min
    9. 9Find the TypoLab4 min
    10. 10Read the Logs4 min
    11. 11The Crashing PodLab5 min
    12. 12Namespaces4 min
    13. 13Find the Missing PodsLab5 min
    14. 14Labels and Selectors5 min
    15. 15Label and FindLab5 min
    16. 16Pods Don't Come Back4 min
    17. 17Delete Two PodsLab5 min
    18. 18Challenge: Fix the Market PodsLab12 min
  2. 02

    Kubernetes Architecture

    The control plane, the nodes, and the YAML that describes everything

    1. 1The Control Plane5 min
    2. 2Meet the Control PlaneLab4 min
    3. 3Nodes and the Kubelet5 min
    4. 4Read the NodeLab4 min
    5. 5kubectl Shortcuts4 min
    6. 6Type LessLab4 min
    7. 7Every Object Has a Shape5 min
    8. 8Read the YAMLLab5 min
    9. 9kubectl explain4 min
    10. 10Ask the APILab4 min
    11. 11Write a Manifest5 min
    12. 12Your First ManifestLab6 min
    13. 13Generate a Manifest4 min
    14. 14Generate, Edit, ApplyLab5 min
    15. 15Apply Again4 min
    16. 16Find the DriftLab5 min
    17. 17Read an apply Error5 min
    18. 18Fix the YAMLLab6 min
    19. 19kubeconfig and Contexts4 min
    20. 20Set Your ContextLab5 min
    21. 21Challenge: Repair the ManifestsLab15 min
  3. 03

    Deployments and Workloads

    ReplicaSets, Deployments, rollouts, rollbacks, Jobs and CronJobs

    1. 1ReplicaSets5 min
    2. 2Keep Three RunningLab6 min
    3. 3Deployments5 min
    4. 4Deploy the MarketLab5 min
    5. 5Scaling4 min
    6. 6Scale the MarketLab4 min
    7. 7Rolling Updates5 min
    8. 8Roll Out a New VersionLab5 min
    9. 9Rollbacks4 min
    10. 10Roll Out a Bad ImageLab5 min
    11. 11Update Strategies5 min
    12. 12Recreate vs RollingLab7 min
    13. 13Pause and Resume4 min
    14. 14The Stuck RolloutLab5 min
    15. 15Jobs5 min
    16. 16Run to CompletionLab8 min
    17. 17CronJobs4 min
    18. 18On a ScheduleLab4 min
    19. 19Challenge: Fix the WorkloadsLab15 min
  4. 04

    Services and DNS

    Stable names and addresses in front of Pods that come and go

    1. 1Pods Have No Fixed Address4 min
    2. 2Watch the Address ChangeLab5 min
    3. 3ClusterIP Services4 min
    4. 4Expose the MarketLab5 min
    5. 5Endpoints4 min
    6. 6The Wrong SelectorLab6 min
    7. 7Ports and targetPorts4 min
    8. 8The Wrong PortLab6 min
    9. 9NodePort Services4 min
    10. 10Open a NodePortLab5 min
    11. 11LoadBalancer and ExternalName4 min
    12. 12Ask for a Load BalancerLab5 min
    13. 13DNS Names5 min
    14. 14Resolve ItLab5 min
    15. 15Headless Services4 min
    16. 16See Every PodLab5 min
    17. 17Challenge: Reconnect the ServicesLab20 min
  5. 05

    Configuration

    Environment, commands, ConfigMaps and Secrets, the same image everywhere

    1. 1Environment Variables4 min
    2. 2Set the VariableLab5 min
    3. 3Commands and Arguments5 min
    4. 4Say It DifferentlyLab5 min
    5. 5ConfigMaps4 min
    6. 6Write the Settings DownLab4 min
    7. 7ConfigMaps in Pods5 min
    8. 8Mount the ConfigLab6 min
    9. 9Secrets4 min
    10. 10Decode ItLab4 min
    11. 11Secrets in Pods4 min
    12. 12Rotate a SecretLab6 min
    13. 13The Downward API4 min
    14. 14Know ThyselfLab4 min
    15. 15Challenge: Configure the MarketLab15 min
  6. 06

    Health Checks and Resources

    Probes that restart or isolate, requests the scheduler reserves, limits the kernel enforces, and the autoscaler that reads them

    1. 1Liveness Probes4 min
    2. 2The Restart LoopLab5 min
    3. 3Readiness Probes4 min
    4. 4Running but Not ReadyLab5 min
    5. 5Startup Probes4 min
    6. 6Give It TimeLab5 min
    7. 7Resource Requests4 min
    8. 8It Does Not FitLab5 min
    9. 9Resource Limits4 min
    10. 10The Hungry PodLab5 min
    11. 11QoS Classes4 min
    12. 12Who Goes FirstLab4 min
    13. 13LimitRanges4 min
    14. 14Sensible DefaultsLab5 min
    15. 15Resource Quotas4 min
    16. 16Over BudgetLab5 min
    17. 17Horizontal Pod Autoscaler5 min
    18. 18Let It ScaleLab6 min
    19. 19Challenge: Stabilise the MarketLab20 min
  7. 07

    Multi-container Pods

    Containers that share a Pod, init containers and sidecars

    1. 1Why Several Containers4 min
    2. 2Two in OneLab5 min
    3. 3Shared Volumes with emptyDir4 min
    4. 4Pass the FileLab6 min
    5. 5Init Containers5 min
    6. 6Wait for the DatabaseLab5 min
    7. 7Sidecar Containers4 min
    8. 8Ship the LogsLab5 min
    9. 9Logs and exec per Container4 min
    10. 10Which Container Is ItLab5 min
    11. 11Challenge: Fix the Pod PairsLab15 min
  8. 08

    Storage

    Volumes, claims, classes and the Pods that keep their data

    1. 1Volumes4 min
    2. 2Data That SurvivesLab6 min
    3. 3PersistentVolumeClaims4 min
    4. 4Claim a volumeLab8 min
    5. 5StorageClasses4 min
    6. 6A Class of Your OwnLab5 min
    7. 7PersistentVolumes5 min
    8. 8Bind by handLab10 min
    9. 9Access Modes and Reclaim Policies4 min
    10. 10Released, not deletedLab12 min
    11. 11StatefulSets5 min
    12. 12Run a stateful databaseLab12 min
    13. 13StatefulSet Updates4 min
    14. 14Hold Back the UpdateLab6 min
    15. 15Challenge: Recover the DataLab25 min
  9. 09

    Scheduling

    Where a Pod lands and why: selectors, affinity, taints, cordon and drain, DaemonSets and priority

    1. 1How Scheduling Works4 min
    2. 2Three NodesLab4 min
    3. 3nodeSelector4 min
    4. 4Pick a DiskLab5 min
    5. 5Node Affinity5 min
    6. 6One of These ZonesLab5 min
    7. 7Taints and Tolerations5 min
    8. 8The Reserved NodeLab5 min
    9. 9Cordon and Drain4 min
    10. 10Empty the NodeLab5 min
    11. 11DaemonSets4 min
    12. 12An Agent on Every NodeLab5 min
    13. 13Pod Affinity and Anti-affinity5 min
    14. 14NeighboursLab5 min
    15. 15Priority and Preemption4 min
    16. 16Make RoomLab5 min
    17. 17Challenge: Schedule the MarketLab20 min
  10. 10

    Access Control

    Who you are, what you may do: ServiceAccounts, Roles, bindings, least privilege and security contexts

    1. 1Authentication and Authorization4 min
    2. 2Who Am ILab4 min
    3. 3ServiceAccounts4 min
    4. 4Give the Pod a NameLab5 min
    5. 5Roles and RoleBindings5 min
    6. 6Let Dev ReadLab5 min
    7. 7ClusterRoles5 min
    8. 8Read Everywhere, Edit HereLab5 min
    9. 9Least Privilege5 min
    10. 10Only What It NeedsLab5 min
    11. 11Security Contexts5 min
    12. 12Drop RootLab5 min
    13. 13Challenge: Restore AccessLab20 min
  11. 11

    Network Policies and Ingress

    Who may talk to whom inside the cluster, and how traffic gets in from outside: NetworkPolicy, Ingress and the Gateway API

    1. 1The Pod Network4 min
    2. 2Everyone Reaches EveryoneLab4 min
    3. 3Default Deny4 min
    4. 4Close the NamespaceLab4 min
    5. 5Allow Ingress From5 min
    6. 6Open the Right DoorsLab6 min
    7. 7Egress Rules4 min
    8. 8Let It OutLab5 min
    9. 9Ingress Resources5 min
    10. 10One Address, Two NamesLab5 min
    11. 11Path-based Routing4 min
    12. 12Split by PathLab5 min
    13. 13The Gateway API5 min
    14. 14Route Through a GatewayLab5 min
    15. 15Challenge: Open the Right DoorsLab20 min
  12. 12

    Observability

    Events, logs, metrics, JSONPath, custom columns and conditions: the questions kubectl can answer about any cluster

    1. 1Events4 min
    2. 2Read the TimelineLab4 min
    3. 3Log Options4 min
    4. 4The Crash Before This OneLab4 min
    5. 5Resource Usage with top4 min
    6. 6Who Is Eating the NodeLab4 min
    7. 7JSONPath5 min
    8. 8Pull the FieldLab5 min
    9. 9Custom Columns and Sorting4 min
    10. 10Build the TableLab5 min
    11. 11Conditions4 min
    12. 12Read the ReasonLab5 min
    13. 13Challenge: Write the ReportLab20 min
  13. 13

    Troubleshooting

    A method for broken things, then every common failure in turn: Pending, crashing, image, Service, config, permission and controller problems

    1. 1A Method for Broken Things5 min
    2. 2Triage Three TicketsLab6 min
    3. 3Pods Stuck in Pending5 min
    4. 4Three Pods, Three ReasonsLab8 min
    5. 5Pods That Crash5 min
    6. 6Three Restart LoopsLab8 min
    7. 7Image Problems4 min
    8. 8Two Pulls That FailLab6 min
    9. 9Services That Don't Answer5 min
    10. 10Follow the ChecklistLab8 min
    11. 11Config and Permission Errors5 min
    12. 12Nothing Mounts, Nothing AllowedLab8 min
    13. 13Controllers That Won't Progress5 min
    14. 14Nothing Is HappeningLab8 min
    15. 15Challenge: The On-call ShiftLab25 min
  14. 14

    Final Challenge

    The Monster Market, moved to a new cluster and broken everywhere: survey it, bring the data back, repair the workloads, reconnect and secure it, then ship it

    1. 1Survey the Cluster5 min
    2. 2Walk the WreckLab8 min
    3. 3Bring the Data Back5 min
    4. 4The Database FirstLab8 min
    5. 5Repair the Workloads5 min
    6. 6One Fix per DeploymentLab10 min
    7. 7Reconnect and Secure5 min
    8. 8Open the Doors, Hand Over the KeysLab12 min
    9. 9Challenge: Ship ItLab25 min