Learning home › Kubernetes 8 + 1 Hour · 中文
Kubernetes 8 + 1 Hour Interactive Crash Course
For Senior Cloud Engineers · From beginner to applying Kubernetes independently in production · 8 lessons × 1 hour · 8 modules per hour, 10 pages per module
Kubernetes v1.37.1kubectl 1.37kind v0.33.0Gateway API v1.6Helm 4.3AKS 1.37 GAVerified on 2026-11-15
Learning path:
Docker 8 hours (prerequisite)→
① Architecture and Core Objects→
② Workloads and Scheduling→
③ Networking→
④ Storage→
⑤ Security→
⑥ Production Operations: Scaling, Upgrades and Troubleshooting→
⑦ Kubernetes on AWS (EKS)→
⑧ Extending Kubernetes: CRDs, Operators and Service Meshes→
⑨ Production Problems and Interview Questions (optional)→
Next course: Terraform 8 hours
8 lessons
Hour 1Architecture and Core ObjectsDeclarative model and control loops, control plane and node components, kubectl and API objects, Pods, the full journey of an apply, labels and selectors, Deployments, Service basicsPrerequisite: Docker basics · Lab: three-node kind cluster
Hour 2Workloads and Schedulingrequests/limits and QoS, probes and graceful termination, ConfigMap/Secret, rollout strategies and PDBs, StatefulSet, DaemonSet, Job/CronJob, scheduling constraintsPrerequisite: hour 1 · Lab: making the shop app production-ready
Hour 3NetworkingNetwork model and CNI, kube-proxy (nftables/iptables; ipvs is deprecated), CoreDNS, LoadBalancer, Ingress and the retirement of ingress-nginx, Gateway API v1.6, NetworkPolicyPrerequisite: hours 1–2 · Lab: Gateway + canary + zero-trust networking
Hour 4Storage and Stateful ApplicationsVolume types, PV/PVC/StorageClass, CSI and Azure Disk/Files, access modes and topology, expansion/snapshots/cloning, PostgreSQL StatefulSet, Velero backup and restorePrerequisite: hours 1–3 · Lab: kind + optional AKS
Hour 5Security and Multi-TenancyAuthentication, RBAC, ServiceAccounts and Workload Identity, Pod Security Standards, securityContext, ValidatingAdmissionPolicy, Secret encryption and Key Vault, quotas and auditingPrerequisite: hours 1–4 · Lab: team tenant baseline
Hour 6Production Operations: Scaling, Upgrades and TroubleshootingDelivery toolchain overview (Helm / Kustomize / GitOps), HPA/VPA and node scaling, observability and kubectl debug, node pressure eviction and node shutdown, cluster upgrades, etcd and certificate operations overview, AKS / EKS / GKE comparison, overall troubleshooting decision treePrerequisite: hours 1–5 · Lab: 6-hour capstone lab
Hour 7Kubernetes on AWS (EKS)EKS architecture and Auto Mode, VPC CNI and IP planning, access entries and Pod Identity, AWS Load Balancer Controller, EBS/EFS CSI, Karpenter and Spot, upgrades and operations, EKS troubleshootingPrerequisite: hours 1–6 · AWS account · Lab: deploy shop on an eksctl cluster
Hour 8Extending Kubernetes: CRDs, Operators and Service MeshesAPI extension mechanisms, CRD schemas and versions, CEL validation, controllers and reconcile loops, writing an Operator with kubebuilder, OLM and choosing existing Operators, service meshes (sidecar and ambient), Istio traffic management and mTLS
Hour 9 · Optional50 Production Problems + 50 Interview QuestionsCommon failures and fixes in scheduling and workloads, networking and traffic, storage configuration and security, upgrades, scaling and cloud platforms; 50 interview questions (including AKS/EKS comparison and scenario design) and a mock interviewPrerequisite: first 8 hours or equivalent experience · Good for CKA/CKAD interview prep
The progress bars on the cards show the learning progress each lesson saves in this browser (hidden if the browser blocks local storage).
Full outline and time allocation (8 × 1 hour + optional Hour 9)
| Hour / Module | Time | Topic | Key concepts | Animation / Interactive | Hands-on lab |
|---|---|---|---|---|---|
| Hour 1 · Architecture and Core Objects (Open) | |||||
| 1-0 | Before class | Environment setup | Azure VM / local Docker, kubectl 1.37, kind v0.33.0 | — | Create a kind cluster with 1 control plane + 2 workers |
| 1-1 | 00–06 | Why Kubernetes | Declarative configuration, desired state, control loops, self-healing; comparison with Compose, ACA and ECS | Control loop rebuilds Pods | Delete a Pod and watch it self-heal |
| 1-2 | 06–14 | Cluster architecture | apiserver, etcd, scheduler, controller-manager, kubelet, kube-proxy, containerd/CRI, CNI | Hub-and-spoke watch relationships | crictl, static Pods, /readyz |
| 1-3 | 14–21 | kubectl and API objects | kubeconfig, GVK/GVR, explain, output formats, dry-run, diff, -v=8 | YAML field explainer | Call the REST API directly with kubectl proxy |
| 1-4 | 21–29 | Pod | pause container, multi-container Pods, init containers, native sidecars (GA in 1.33), phase and container states | Pod lifecycle state machine | Create and diagnose ImagePullBackOff / CrashLoopBackOff |
| 1-5 | 29–36 | The full journey of an apply | Authentication → authorization → admission → etcd → controller → scheduler → kubelet → CRI → CNI; SSA | 10+ step request-flow animation | server-side apply, events, managedFields |
| 1-6 | 36–42 | Namespace · Label · Selector | Scope, recommended labels, equality and set-based selectors, field selectors | Change a label to detach a Pod from its ReplicaSet | Label operations |
| 1-7 | 42–51 | Deployments and ReplicaSets | RollingUpdate/Recreate, rollout history/undo, change-cause | Rolling updates: tune maxSurge/maxUnavailable | Upgrade, stuck rollout, rollback |
| 1-8 | 51–60 | Service basics and troubleshooting | ClusterIP/NodePort, EndpointSlice, DNS, port-forward | Basic troubleshooting decision tree | Expose the api and troubleshoot |
| Hour 2 · Workloads and Scheduling (Open) | |||||
| 2-1 | 00–07 | requests/limits and QoS | cgroup v2, CPU throttling vs OOMKill, QoS classes, in-place resize (GA in 1.35) | Throttling vs OOM simulator | Reproduce OOMKilled, resize resources live |
| 2-2 | 07–15 | Probes and graceful termination | liveness/readiness/startup, termination sequence, preStop | Termination timeline race | Zero-downtime rolling update |
| 2-3 | 15–22 | ConfigMaps and Secrets | env/volume injection, hot-reload differences, immutable, imagePullSecrets | Compare which updates take effect | Externalized config and rollouts |
| 2-4 | 22–30 | Advanced rollout strategies | maxSurge/maxUnavailable calculation, blue-green, canary, PDB | Blue-green / canary interactive | Blue-green cutover |
| 2-5 | 30–37 | StatefulSet | Stable identity, headless Services, volumeClaimTemplates, partition | Ordered creation and batched updates | Deploy postgres |
| 2-6 | 37–42 | DaemonSet | One per node, tolerating control-plane taints, update strategy | — | Node agent |
| 2-7 | 42–49 | Job and CronJob | completions/parallelism, backoffLimit, Indexed, timeZone, concurrencyPolicy | — | Database backup CronJob |
| 2-8 | 49–60 | Scheduling | Affinity/anti-affinity, taint tolerations, topology spread, priority and preemption, drain | Scheduler filtering + scoring | Spread replicas across nodes, drain drill |
| Hour 3 · Networking (Open) | |||||
| 3-1 | 00–07 | Network model and CNI | Four requirements, veth/bridges, overlay vs routing, CNI ADD | Cross-node packet path | Inspect Pod networking |
| 3-2 | 07–15 | Service deep dive | kube-proxy nftables/iptables (ipvs is deprecated and expected to be disabled by default in v1.40), EndpointSlice, trafficDistribution | DNAT load balancing | Inspect nft / iptables rules |
| 3-3 | 15–21 | CoreDNS | search/ndots, headless, SRV, ExternalName, NodeLocal DNS | ndots query expansion | dig for each record type |
| 3-4 | 21–28 | LoadBalancer | cloud-controller-manager, externalTrafficPolicy, source IP | Cluster vs Local comparison | cloud-provider-kind |
| 3-5 | 28–34 | Ingress and its retirement | Ingress API is still GA; ingress-nginx archived 2026-03; ingress2gateway 1.0 | — | Ingress → Gateway conversion |
| 3-6 | 34–44 | Gateway API v1.6 | Role model, HTTPRoute matching/filters/weights, ReferenceGrant, TCP/UDPRoute | Route matching simulator | Path routing + 90/10 canary |
| 3-7 | 44–52 | NetworkPolicy | Default allow, default deny, allow DNS, namespaceSelector | Connectivity matrix | Shop zero-trust network |
| 3-8 | 52–60 | Network troubleshooting | Layered troubleshooting, netshoot, common errors | Network troubleshooting decision tree | Fault injection |
| Hour 4 · Storage and Stateful Applications (Open) | |||||
| 4-1 | 00–07 | Volume basics | emptyDir, projected, hostPath risks, ephemeral volumes | Data path simulator | Volume type comparison |
| 4-2 | 07–15 | PV · PVC · StorageClass | Dynamic provisioning, binding, reclaimPolicy, WaitForFirstConsumer | Provisioning → binding → mount timing | Dynamic PVC |
| 4-3 | 15–22 | CSI and Azure Disks | controller/node plugins, sidecars, Azure Disk/Files CSI | CSI gRPC call chain | AKS disks (optional) |
| 4-4 | 22–29 | Access modes and topology | RWO/ROX/RWX/RWOP, zone topology, Retain/Delete | Scenario matching | — |
| 4-5 | 29–36 | Expansion · snapshots · cloning | Online expansion, VolumeSnapshot, dataSource | — | Expansion and snapshot restore |
| 4-6 | 36–46 | PostgreSQL in practice | volumeClaimTemplates, retention policy, fsGroup, Operator vs managed service | Relationship between replicas and PVCs | Data persistence check |
| 4-7 | 46–53 | Velero backup and restore | BSL, CSI snapshots, Kopia filesystem backup, hooks | Backup / restore flow | MinIO + Velero |
| 4-8 | 53–60 | Storage troubleshooting | Pending, Multi-Attach, FailedMount, permissions, finalizers | Storage troubleshooting decision tree | Reproduce the fault |
| Hour 5 · Security and Multi-Tenancy (Open) | |||||
| 5-1 | 00–07 | Authentication | X.509, SA tokens, OIDC, kubelogin, CSR API | authn → authz → admission chain | Issue a user certificate |
| 5-2 | 07–15 | RBAC | Role/Binding, dangerous permissions, can-i, aggregated roles | RBAC decision simulator | Team least privilege |
| 5-3 | 15–22 | ServiceAccounts and Workload Identity | Projected tokens, TokenRequest, AKS Workload Identity | Token exchange flow | AKS reads Key Vault (optional) |
| 5-4 | 22–29 | Pod Security Standards | Privileged/Baseline/Restricted, PSA labels | Field → level decision | Move shop to restricted |
| 5-5 | 29–36 | securityContext | Non-root, read-only root filesystem, drop ALL, seccomp, user namespaces | — | Harden podinfo |
| 5-6 | 36–44 | Admission control | VAP (CEL), MAP, webhook risks, Kyverno/Gatekeeper | Admission chain animation | Block :latest and containers without limits |
| 5-7 | 44–52 | Secret security | etcd encryption, KMS v2, Secrets Store CSI, External Secrets | Encrypted read/write flow | Verify etcd encryption |
| 5-8 | 52–60 | Multi-tenancy | ResourceQuota, LimitRange, audit logs, hard isolation options | Permission troubleshooting decision tree | Audit verification |
| Hour 6 · Production Operations: Scaling, Upgrades and Troubleshooting (Open) | |||||
| 6-1 | 00–06 | Delivery toolchain overview | Roles and combinations of Helm, Kustomize and GitOps; a minimal overlay and helm install; pull-based reconciliation | Comparison of three delivery paths | Deploy the same api once with apply -k and once with Helm |
| 6-2 | 06–14 | Autoscaling | HPA v2 (scale-to-zero is Beta in 1.37), VPA, KEDA, CA / Karpenter / NAP | HPA calculation loop | Scaling under load test |
| 6-3 | 14–22 | Observability | Metrics / logs / events, kube-prometheus-stack, kubectl debug | Alert investigation path | Ephemeral container debugging |
| 6-4 | 22–29 | Reliability: eviction and node shutdown | Eviction signals and thresholds, ranking rules, graceful vs non-graceful shutdown, six termination paths | Eviction ranking simulator | emptyDir over-limit eviction; Eviction API vs delete |
| 6-5 | 29–37 | Upgrades and maintenance | Version skew, deprecated APIs, drain + PDBs, AKS upgrade channels and maintenance windows | Node pool rolling upgrade | Node pool upgrade |
| 6-6 | 37–43 | Control plane operations overview | etcd quorum, snapshots and restore, certificate validity and renewal | Backup and restore demo | kind snapshot restore drill |
| 6-7 | 43–51 | Managed cluster comparison | AKS / EKS / GKE responsibility boundaries, networking, identity, upgrades and scaling | Three-platform comparison | aks-lab read-only health check |
| 6-8 | 51–60 | Overall troubleshooting decision tree | Summary of the 6-hour troubleshooting methods, runbooks and postmortems | Large-scale troubleshooting decision tree | Fault injection drill |
| Hour 7 · Kubernetes on AWS (EKS) (Open) | |||||
| 7-0 | Before class | AWS setup | AWS CLI v2, eksctl, IAM permissions and cost estimate | — | — |
| 7-1 | 00–07 | EKS architecture and selection | Managed node groups / Fargate / Auto Mode, compared with AKS | — | Create a cluster with eksctl |
| 7-2 | 07–15 | Networking: VPC CNI | Pods use VPC IPs, ENIs and IP limits, prefix delegation, Security Groups for Pods | How VPC CNI allocates IPs | Reproduce IP exhaustion |
| 7-3 | 15–23 | Identity | Access entries, EKS Pod Identity and IRSA | Pod Identity credential flow | Pod accesses S3 |
| 7-4 | 23–31 | Traffic | AWS Load Balancer Controller (ALB/NLB), Gateway API | — | ALB Ingress |
| 7-5 | 31–38 | Storage and secrets | EBS / EFS CSI, Secrets Manager | — | EBS persistent volumes |
| 7-6 | 38–46 | Autoscaling and cost | Karpenter, Auto Mode, Spot, node consolidation | — | Scale-out load test |
| 7-7 | 46–53 | Upgrades and operations | Version support window, managed add-ons, Container Insights / AMP | — | Upgrade drill |
| 7-8 | 53–60 | EKS troubleshooting and cleanup | Common failures and cleanup in dependency order | EKS troubleshooting decision tree | Full cleanup |
| Hour 8 · Extending Kubernetes: CRDs, Operators and Service Meshes (Open) | |||||
| 8-0 | Before class | Preparation: kind cluster and extension tools (kubebuilder, istioctl) | kind cluster lab, Go, kubebuilder, istioctl, Gateway API CRDs | — | Create the cluster and install the tools |
| 8-1 | 00–06 | API extension overview: CRDs, aggregated APIs and admission | Choosing between CRDs, aggregated APIs (APIService), admission webhooks and VAP | Extension points a request passes through | List the extension points in the cluster |
| 8-2 | 06–13 | CRD deep dive: schema, versions, CEL validation and the status subresource | Structural schema, x-kubernetes-validations (CEL), status/scale subresources, printer columns, multiple versions and conversion webhooks | CRD validation pipeline | Write the ShopApp CRD |
| 8-3 | 13–21 | Controller pattern: informers, reconcile and finalizers | list-watch, informer cache, workqueue, level-triggered and idempotent logic, ownerReference, finalizers, leader election | Reconcile loop (including retries and finalizer deletion) | Simulate a controller by hand |
| 8-4 | 21–28 | Operator in practice: build an Operator with kubebuilder | kubebuilder init / create api, Reconcile, RBAC markers, make manifests / run / deploy | kubebuilder workflow (make run / make deploy) | ShopApp Operator |
| 8-5 | 28–35 | Using existing Operators: OLM, maturity and selection | OperatorHub, OLM, capability levels, CRD upgrades and permission risks, review checklist | Operator selection scorer | Install CloudNativePG |
| 8-6 | 35–42 | Service mesh principles: sidecars, ambient and mTLS | Sidecar vs ambient (ztunnel / waypoint), mTLS and SPIFFE identity, Gateway API for meshes, when not to use a mesh | mTLS path through ztunnel / sidecar | Data plane selection ADR (reading) |
| 8-7 | 42–50 | Istio in practice: traffic splitting, mTLS and observability | Install ambient, PeerAuthentication STRICT, AuthorizationPolicy, HTTPRoute weighted split, Kiali / Prometheus | Weighted routing + mTLS authorization simulator | Shop 90/10 canary |
| 8-8 | 50–60 | Extension review, troubleshooting and self-check | Common CRD / Operator / mesh failures and review checklist | Fault injection simulator + extension troubleshooting decision tree | Fault injection drill |
| Hour 9 (optional) · 50 Production Problems + 50 Interview Questions (Open) | |||||
| 9-1 | 00–08 | A · Problems 1–12 | Scheduling and workloads | Troubleshooting decision tree | Reproduce on kind |
| 9-2 | 08–16 | A · Problems 13–25 | Networking, DNS and traffic | Troubleshooting decision tree | Reproduce on kind |
| 9-3 | 16–24 | A · Problems 26–38 | Storage, configuration and security | Troubleshooting decision tree | Reproduce on kind |
| 9-4 | 24–30 | A · Problems 39–50 | Upgrades, scaling, nodes and cloud platforms | Failure simulator | — |
| 9-5–9-8 | 30–60 | B · Interview questions 1–50 | Architecture, workloads, networking, storage, security, operations and cloud platforms, scenario design | Mock interview | — |
10 pages per module
Principles (What / Why / How / When) · diagrams (architecture and data-flow diagrams) · animations (step-by-step demos of the real mechanisms) · commands (full parameters and expected output) · labs (runnable steps and cleanup) · production cases · troubleshooting · quiz (5 multiple-choice questions + a command question + a scenario question) · voice (English narration script with browser read-aloud) · video (verified videos and storyboard scripts).
Lab environment
- Azure VM: Ubuntu 24.04 LTS,
Standard_D4s_v5, resource grouprg-k8s-lab, Docker Engine 29.x installed (carried over from the Docker 8-hour course). You can also run kind on Docker Desktop locally. - Local cluster: kind v0.33.0, cluster name
lab, node imagekindest/node:v1.37.0(pinned by digest). - Cloud clusters (for some labs, optional): hours 4–6 use the AKS cluster
aks-lab; hour 7 uses an EKS cluster created with eksctl (regionca-central-1). Each hour lists a cost estimate and cleanup commands. - Sample app
shop: web (nginx), api (ghcr.io/stefanprodan/podinfo:6.17.0), db (postgres:17), evolving across the hours.
Multimedia notes
Animations and voice: each module's “Animation” tab is a step-by-step demo built with inline SVG and JavaScript, and it plays offline. The “Voice” tab reads the narration aloud using the browser's built-in Web Speech API (en-US), and English terms are pronounced with en-US.
Limits: the environment that generated the course cannot produce videos or MP3 files directly. The video tab only lists public videos that have been verified to exist, with storyboard scripts and narration scripts that can be handed to a video or TTS tool. IPs, UIDs, hashes and durations in expected output are sample values.
Out of scope for this course
- Operator development (client-go, controller-runtime, Kubebuilder), advanced CRD authoring
- In-depth use of service meshes (Istio, Linkerd, Cilium Service Mesh)
- DRA / GPU scheduling, multi-cluster (Fleet Manager, Cluster API), Windows nodes
- The full etcd disaster recovery and certificate rotation workflow from the CKA / CKS exams (hour 6 covers only an overview)
Version baseline (verified on 2026-11-15)
| Component | Version | Source |
|---|---|---|
| Kubernetes | 1.37.1 (2026-09-15); supports 1.37 / 1.36 / 1.35; 1.34 reached EOL on 2026-10-27 | kubernetes.io/releases |
| v1.37 "Garhwal" | Released 2026-08-26: metrics API GA, HPA scale-to-zero Beta; announced the ipvs mode (disabled by default in v1.40, removed in v1.43) and the retirement timeline for kube-dns | Release blog |
| kind | v0.33.0, default kindest/node:v1.37.0 | kind releases |
| Gateway API | v1.6 (TCPRoute/UDPRoute move to Standard) | v1.6 blog |
| ingress-nginx | Archived 2026-03-24, final version v1.15.1; migration tool ingress2gateway 1.0 | ingress2gateway 1.0 |
| Helm | 4.3.x; security fixes for Helm 3 continue until 2027-02-10 | Helm 3 EOL |
| AKS | 1.37: preview 2026-09, GA 2026-10 | AKS supported versions |