Kubernetes security & hardening
Assumes you already administer clusters (CKA-level). Twenty-four lessons across the six official CKS domains, one topic at a time: cluster setup and network policy, cluster and API hardening, host and kernel hardening with seccomp and AppArmor, microservice security from security contexts to sandboxes, a signed and scanned supply chain, and runtime detection with Falco and audit logs. Each lesson ends with a short quiz.
01CKS domains and threat modelThe six domains and what an attacker does with a foothold.12 min02Network policies and default-denySegment the cluster without breaking DNS.14 min03CIS benchmark with kube-benchScore a node against the benchmark, then remediate.12 min04Ingress TLS hardeningTerminate HTTPS and force redirect at the edge.12 min05Block cloud metadata, verify binariesBlock the cloud metadata endpoint; checksum platform binaries.10 min
01API server and kubelet hardeninganonymous-auth, authorization-mode, kubelet webhook.14 min02RBAC minimizationLeast privilege and the grants that are really escalation.14 min03Service account hardeningDisable automount; scope and bind narrowly.12 min04Restrict API access, upgrade oftenNodeRestriction, version currency, exposure.10 min
01Security contexts for CKSrunAsNonRoot, drop capabilities, no privilege escalation.12 min02Pod Security Standards and GatekeeperBaseline, restricted, and OPA/Gatekeeper.14 min03Secrets encryption at restEncrypt etcd; pull from external stores.14 min04mTLS between podsIdentity and encryption between services.10 min05gVisor and Kata sandboxed runtimesA kernel boundary for untrusted workloads.10 min
01Minimal and distroless base imagesDistroless, multi-stage, and footprint.10 min02Static analysis with KubesecScore manifests for risk before they ship.10 min03Image scanning with TrivyReport everything, fail only on criticals.12 min04Image signing and allowed registriesKeyless signing and verification at admission.14 min
Progress is saved in this browser only — no account required.
Quick reference
kubectl cheat sheetCheat sheetKubernetes interview questionsInterview guideDevSecOps & supply-chain security interview questionsInterview guide
Final exam
Test yourself on everything
61 questions drawn from all 6 sections — every answer explained as you pick.