KUBERNETES TUTORIAL · KUBECTL SIMULATOR · 7 LESSONS
Workloads: Deployments, rollouts and jobs
ReplicaSets and self-healing, rolling updates and rollbacks, probes, requests and limits, scheduling, StatefulSets, DaemonSets, Jobs and CronJobs.
Deployments, ReplicaSets and Pods: the controller chain behind every replica
Create a Deployment, trace its ReplicaSet and Pods through labels and owner references, read the READY, UP-TO-DATE and AVAILABLE columns, and watch the controllers scale and replace Pods.
5 min · Worked lesson
Rolling updates: maxSurge, maxUnavailable, rollout history, undo and stalled rollouts
Configure a Deployment's update strategy, predict how many Pods exist during a rollout, follow and steer it with kubectl rollout, and recover from a release that never becomes ready.
5 min · Worked lesson
Readiness, liveness and startup probes: routing traffic and restarting stuck containers
Choose the right probe for each question, configure its timing, implement /readyz and /healthz handlers in a Go service, and avoid the probe settings that cause outages.
5 min · Worked lesson
Resource requests and limits, CPU throttling, OOMKills and QoS classes
Set requests and limits deliberately, predict how the scheduler and the kernel use them, recognise CPU throttling and OOMKilled containers, and know which QoS class each workload gets.
5 min · Worked lesson
Scheduling: node selection, affinity, taints and tolerations, spreading and draining nodes
Explain how the scheduler filters and scores nodes, steer Pods with nodeSelector and affinity, keep them off nodes with taints, and read FailedScheduling messages after a cordon, a drain or a bad constraint.
6 min · Worked lesson
StatefulSets for stable identity and storage, DaemonSets for one Pod per node
Run a StatefulSet with a headless Service and volumeClaimTemplates, predict its ordering and storage behaviour, and run a DaemonSet that covers every node, tainted ones included.
5 min · Worked lesson
Jobs and CronJobs: batch work with retries, deadlines and schedules
Run Jobs with completions, parallelism, backoffLimit and activeDeadlineSeconds, schedule them with CronJobs and a concurrency policy, trigger a run by hand, and write batch code that is safe to retry.
5 min · Worked lesson