kubernetes•
Kubernetes Hardening — Practical Checklist
Here’s a compact checklist that has saved me many hours:
- RBAC first — bind users to Roles, not cluster-admin. Namespaces for isolation.
- Admission — Gatekeeper/OPA constraints for image registries, namespaces, and resource limits.
- Network — Default deny; allow only needed
NetworkPolicy
. SplitIngress
/Egress
as needed. - Pods — Drop all capabilities;
runAsNonRoot
; read-only rootfs where possible. - Supply chain — Sign images (Cosign), pin digests, private registries.
- Runtime — Audit logs to SIEM; Falco for suspicious syscalls.
- Backups — etcd snapshots & Velero. Test restores.