Skip to contentkubesim

Lessons

19 short, hands-on lessons in 7 tracks. Each one gives you a live cluster, a real kubectl terminal, and checks that tick off as you go. Take the tracks in order; each builds on the last.

0 of 19 lessons done. Your progress

Foundations

Pods, YAML, the controllers that keep them running, Services and Namespaces.

  1. 01

    Your first Pod

    Up next

    Meet the cluster, run a container in a Pod, read its logs, and see what happens when you delete it.

    Node · Pod · kubectl

  2. 02

    Declarative YAML

    Describe what you want in a manifest and let Kubernetes make it so. Apply, edit, re-apply.

    Manifest · kubectl apply · Desired state

  3. 03

    ReplicaSets & self-healing

    See the control loop that replaces lost Pods, and how labels decide which Pods a ReplicaSet owns.

    ReplicaSet · Labels & selectors · Control loop

  4. 04

    Services & networking

    Give a set of Pods one stable address, load-balance across them, and reach them from outside.

    Service · EndpointSlice · DNS · NodePort

  5. 05

    Namespaces

    Split one cluster into separate spaces for teams or environments.

    Namespace · Scope · Context

Workloads

Deployments, rollouts, health checks, and the other ways to run Pods.

  1. 06

    Deployments & scaling

    Create a Deployment from the command line and scale it up and down.

    Deployment · Scaling · Scheduling

  2. 07

    Rolling updates & rollbacks

    Ship a new version with zero downtime, break a rollout on purpose, and undo it.

    Rolling update · Revision history · Rollback

  3. 08

    Health checks: readiness & liveness

    Tell Kubernetes how to check your app. Break a Pod on purpose and watch readiness take it out of the Service, then liveness restart a stuck container.

    Readiness probe · Liveness probe · Startup probe · kubectl exec

  4. 09

    Jobs & CronJobs

    Run work that finishes: one-off Jobs, parallel batches, retries that give up, and Jobs on a schedule.

    Job · CronJob · completions & parallelism · backoffLimit

Configuration

Resources, ConfigMaps and Secrets.

  1. 10

    Resources & limits

    Reserve CPU and memory for containers, see a Pod that can't be scheduled, watch a container get OOMKilled, and measure real usage.

    Requests & limits · QoS class · Insufficient cpu · OOMKilled · kubectl top

  2. 11

    ConfigMaps & Secrets

    Keep settings out of your images: environment variables and files from ConfigMaps, passwords from Secrets, and what happens when one is missing.

    ConfigMap · Secret · envFrom · Volumes · CreateContainerConfigError

Networking

Beyond Services: Ingress and NetworkPolicy.

  1. 12

    Ingress

    Put one HTTP entrance in front of several Services and route by hostname and path, with the ingress-nginx controller.

    Ingress · Ingress controller · Host & path routing

  2. 13

    Network policies

    Firewall rules for Pods: deny everything, allow only what's needed, across namespaces, and remember DNS when you limit outgoing traffic.

    NetworkPolicy · podSelector · namespaceSelector · Egress · DNS

Storage

PersistentVolumes and StatefulSets.

  1. 14

    Persistent storage

    Claim a volume, see why it waits for a Pod, and keep data when the Pod that wrote it is gone.

    PersistentVolumeClaim · PersistentVolume · StorageClass · WaitForFirstConsumer

  2. 15

    StatefulSets

    Run Pods that keep their identity: ordered start, stable names and DNS, and a volume each that follows them.

    StatefulSet · Headless Service · volumeClaimTemplates · Stable DNS

Operations

Troubleshooting, Nodes and scheduling, and autoscaling.

  1. 16

    Troubleshooting

    Three things are broken. Use get, describe, logs and events to find and fix each one.

    Debugging · ImagePullBackOff · CrashLoopBackOff · Selectors

  2. 17

    Scheduling: selectors, taints & drains

    Steer Pods onto the right Nodes with labels, keep them off with taints, and empty a Node safely before maintenance.

    nodeSelector · Taints & tolerations · Cordon & drain · DaemonSet

  3. 18

    Autoscaling with the HPA

    The official HorizontalPodAutoscaler walkthrough: put CPU load on php-apache, watch it scale out, then scale back in.

    HorizontalPodAutoscaler · metrics-server · Stabilization window

Security

Who may do what: RBAC and ServiceAccounts.

  1. 19

    RBAC & ServiceAccounts

    Give a CI pipeline its own identity, see it get Forbidden, then grant exactly what it needs with a Role and a RoleBinding.

    ServiceAccount · Role · RoleBinding · kubectl auth can-i · Impersonation