Part 12 · Kubernetes · 12.1

Control loops và workload lifecycle

Kubernetes là hệ thống API + controllers liên tục đưa observed state về desired state; apply YAML không phải imperative deployment script.

Lộ trình lý thuyết: đi từ control plane và declarative model đến lifecycle, scheduling, workload controllers, networking, storage, security, autoscaling và troubleshooting. Các deep dive bổ sung cho Ingress/Gateway, runtime failures và boundary từ Docker sang Kubernetes.

10 chương cốt lõi

01

Control Plane & Reconciliation

API server, etcd, scheduler, controller manager và kubelet.

02

API Objects & Declarative Model

Spec/status, metadata, watch, ownership, finalizers và admission.

03

Pod Lifecycle & Probes

Init, restart, readiness, liveness, startup và termination.

04

Scheduling & Resources

Requests/limits, QoS, affinity, taints, topology và OOM.

05

Workload Controllers & Rollouts

Deployment, ReplicaSet, Job, DaemonSet và rollout safety.

06

Services, DNS & Gateway

Endpoints, kube-proxy, CNI, Ingress/Gateway và NetworkPolicy.

07

Storage & Stateful Workloads

PV/PVC, StorageClass, CSI, StatefulSet, backup và failover.

08

Configuration & Security

ConfigMap, Secret, RBAC, service accounts, admission và Pod security.

09

Autoscaling & Disruption

HPA/VPA, node scale, PDB, drain và capacity lag.

10

Observability & Troubleshooting

Events, logs, metrics, audit, rollout and incident flow.

Deep dive và boundary

06A · Deep dive

Ingress & Gateway API

Controller/data plane, IngressClass, TLS, paths, headers, status, Gateway roles và debugging.

Runtime

Docker → Kubernetes

Image/OCI/CRI, Compose mapping, resource, storage, network và security boundaries.

Deep labs

Ingress & Runtime Failures

404/502/503/504, TLS, Gateway migration, Pod compatibility và graceful rollout.