KUBERNETES TUTORIAL · KUBECTL SIMULATOR · 6 LESSONS
Kubernetes foundations: the cluster and kubectl
Control plane and nodes, kubeconfig contexts and namespaces, the anatomy of an object, Pods, labels and selectors, declarative apply and kustomize.
How a cluster works: control plane, nodes and reconciliation loops
Name the control-plane and node components, trace a kubectl apply from the API request to a running container, and inspect the nodes and system pods of a kind cluster.
6 min · Worked lesson
kubeconfig, contexts and namespaces: know where every kubectl command goes
Read a kubeconfig, list, create and switch contexts, set a default namespace, and use -n, -A and explicit contexts so that commands reach the cluster and namespace you intend.
6 min · Worked lesson
Anatomy of an object: apiVersion, kind, metadata, spec and status
Write a manifest from scratch or from a dry-run scaffold, tell spec from status, choose between labels and annotations, look fields up with kubectl explain, read live state with jsonpath and recognise strict validation errors.
6 min · Worked lesson
Pods: shared containers, phases, container states and restart policy
Run and inspect pods, tell the pod phase from container states and the STATUS column, choose a restartPolicy, use logs and exec, and explain why controllers rather than people should create pods.
6 min · Worked lesson
Labels and selectors: how controllers and Services find their pods
Label objects, query them with equality-based and set-based selectors, explain how ReplicaSets and Services choose pods by label, and predict what relabelling a pod does.
6 min · Worked lesson
Declarative configuration with kubectl apply, manifest directories and kustomize
Manage objects from version-controlled manifests with kubectl apply, interpret created, configured and unchanged, apply and delete whole directories, and produce per-environment variants with kustomize.
6 min · Worked lesson