Topic 10 of 12
Kubernetes
Run containers the way Kubernetes does: learn the control loop, Pods, Deployments, Services, config, storage, routing and Helm on a free local cluster.
After this topic you can: Run a small web app on a local kind cluster, expose it, configure it, give it storage, roll out and roll back changes, and diagnose the common failures.
8 lessons · 100 min · 0 of 8 done
Best read after: Containers with Docker, Networking for DevOps
Draft. This lesson is written and waiting for a person to run every command and review it. It is safe to learn from, but check the official documentation for anything you depend on.
Lessons, in order
- 1Why Kubernetes exists and how it is builtCoreUnderstand what the API server, etcd, scheduler and kubelet do, and why Kubernetes works by comparing the state you want with the state you have.12 min
- 2Pods: the smallest thing Kubernetes runsCoreLearn what a Pod is, run one, read its logs and events, and diagnose CrashLoopBackOff and Pending Pods with kubectl describe and logs --previous.12 min
- 3Deployments: replicas, rollouts and rollbacksCoreRun several copies of a Pod, watch Kubernetes replace deleted ones, roll out a new image, spot ImagePullBackOff and roll back with one command.13 min
- 4Services: stable addresses and DNS names for PodsCoreSee how a Service finds Pods by label, gives them a stable name, and how to debug a Service with no endpoints caused by a selector mismatch.13 min
- 5ConfigMaps and Secrets: settings outside the imageCorePass settings to containers with ConfigMaps and Secrets, read them as env vars or files, and learn why a Secret is encoded with base64, not encrypted.11 min
- 6Storage: volumes, PersistentVolumes and claimsCoreKeep data when a Pod is replaced: see how a claim, a PersistentVolume and a StorageClass fit together, and fix a Pod stuck on an unbound claim.12 min
- 7Ingress and Gateway API: routing from outsideAdvancedRoute outside HTTP traffic to Services by host and path. Learn how Ingress works, why ingress-nginx retired, and how Gateway API replaces Ingress.13 min
- 8Helm and GitOps: packaging and automating deploysAdvancedPackage manifests as a Helm chart with values, install, upgrade and roll back a release, then see how Argo CD and Flux apply Git to a cluster.14 min