cd ~/tutorials/kubernetes

Kubernetes Tutorial

Learn Kubernetes from zero: how a cluster works, how to run, expose and configure applications, and how to keep them healthy in production.

13 lessons · 80 min

Start the course →

This course takes you from “what is a cluster?” to running real workloads with Deployments, Services, configuration, storage, resource limits, Helm and monitoring. Every lesson has commands and manifests you can apply on a local cluster, two quick exercises and answers to the questions people ask most.

Before you start: you should be comfortable with containers. If docker build and docker run are new to you, do the Docker Tutorial first. Lesson 3 shows how to get a free local cluster with kind or minikube.

Keep the Kubernetes Cheatsheet open in another tab while you work through the lessons: it collects every kubectl command used here in one place.

ls ./lessons

  1. Introduction to KubernetesWhat Kubernetes is, the problems it solves that Docker alone does not, the five objects you meet on day one and how to decide if you need it at all.beginner7 min readCompleted
  2. Kubernetes ArchitectureWhat every control plane and node component does, what breaks when each one fails, and the full path from kubectl apply to a running Pod.intermediate7 min readCompleted
  3. Installing KubernetesPick the right way to get a cluster: kind and minikube for learning, Docker Desktop for a quick look, k3s for small servers, kubeadm to learn the internals and managed clusters for production.beginner6 min readCompleted
  4. kubectl BasicsHow kubectl talks to the cluster, contexts and namespaces, apply vs create, the commands you run every day, label selectors, output formats and the shortcuts that make you fast.beginner6 min readCompleted
  5. Kubernetes PodsWhat a Pod is and what its containers share, how to write a good Pod spec, init containers and sidecars, the Pod lifecycle and how to debug Pending, ImagePullBackOff and CrashLoopBackOff.beginner7 min readCompleted
  6. Kubernetes DeploymentsHow Deployments manage ReplicaSets and Pods, how to write one, rolling updates with maxSurge and maxUnavailable, rollbacks, stuck rollouts and when to use a StatefulSet instead.intermediate6 min readCompleted
  7. Kubernetes ServicesHow Services find Pods with label selectors, port vs targetPort, cluster DNS, the ClusterIP, NodePort, LoadBalancer and ExternalName types, headless Services and why a Service is not a proxy.intermediate6 min readCompleted
  8. ConfigMaps and SecretsKeep configuration out of your images: ConfigMaps for settings, Secrets for credentials, environment variables vs mounted files, immutable versioned config and where real secret management lives.intermediate5 min readCompleted
  9. Kubernetes StorageKeep data alive beyond a Pod: emptyDir and hostPath, PersistentVolumes and claims, StorageClasses, access modes, reclaim policies, CSI drivers and how to debug a Pending PVC.intermediate6 min readCompleted
  10. Kubernetes NamespacesWhat namespaces scope and what they do not, the built-in namespaces, cross-namespace DNS, RBAC, quotas and network policies per namespace, how to divide a cluster and how to delete safely.intermediate6 min readCompleted
  11. Kubernetes Resource ManagementRequests vs limits, CPU and memory units, throttling and OOMKilled, the CPU limits debate, QoS classes and eviction, LimitRange and ResourceQuota, and how to choose the right numbers.advanced6 min readCompleted
  12. Helm for KubernetesWhat Helm is, charts vs releases vs repositories, the install, upgrade and rollback workflow, what happens during an upgrade, where Helm is weak and when to use Kustomize instead.intermediate6 min readCompleted
  13. Kubernetes MonitoringTurn a silent cluster into an observable one: metrics-server and kubectl top, Prometheus with kube-prometheus-stack, ServiceMonitors, what to watch, alerts worth having, logs, events and tracing.advanced6 min readCompleted

↑ ↓ navigate Enter open Esc close