Lines of Defense - Securing your Kubernetes Clusters
summary
Keep control plane ports and kubelet ports off the public internet, restrict kubelet access and enforce RBAC and least privilege, set automountServiceAccountToken=false for pods that don't need API tokens. Encrypt etcd and rotate/recreate secrets after enabling encryption, and use an external secret manager like Vault or Secret Store CSI so cluster Secrets aren’t the sole credential source. Add CI gating with manifest checks (kubesec), image scanners (Trivy/Aqua), admission policies via Kyverno or OPA, runtime hardening with AppArmor or gVisor, audit logging, Falco alerts and periodic kube-bench CIS scans.
AI-written summary · about
chapters (24)
- 0:00Introduction to Kubernetes security
- 3:10Kubernetes architecture recap
- 5:19King Adin’s security strategy
- 7:05Firewalling Kubernetes ports
- 8:29Securing worker nodes
- 9:35Restricting permissions with RBAC
- 12:32Container runtime security
- 12:53Encrypting data in transit
- 15:21Securing API server communication
- 16:25Service mesh for TLS encryption
- 17:50Encrypting data at rest
- 18:54External secret stores
- 22:34Static pod analysis tools
- 24:19Image scanning in CI/CD
- 26:04Admission control policies
- 27:50Policy engines like OPA
- 28:53KubeVirt for admission control
- 29:59Kernel security with AppArmor
- 31:21Sandboxing with gVisor
- 31:41Enabling audit logs
- 32:47Threat detection with Falco
- 33:30Benchmarking cluster security
- 34:14Security checklist summary
- 37:13Q&A session
