What is your security baseline for a new production EKS cluster?
IntermediateProductionKubernetes Security Posture
Answer
- Private API endpoint (or public restricted to known CIDRs), access entries for auth, control plane logging (
api,audit,authenticator) on. - Envelope encryption of Secrets with a customer-managed KMS key.
- Managed node groups or Karpenter on Bottlerocket / AL2023, IMDSv2 hop limit 1, nodes in private subnets.
- Pod Identity or IRSA for workload cloud access; no node role permissions beyond the basics.
- Pod Security Admission
restrictedby default, Kyverno or Gatekeeper for org policies. - Default-deny NetworkPolicies (VPC CNI network policy or Cilium).
- GuardDuty EKS Protection and Runtime Monitoring, or Falco.
- All of it in Terraform, with a supported Kubernetes version and an upgrade cadence.
More on Kubernetes Security Posture
Draw the layered security controls for workloads on Kubernetes.BeginnerHow do you assign Pod Security Admission levels across namespaces in production?BeginnerKyverno, OPA Gatekeeper or ValidatingAdmissionPolicy: how do you choose?IntermediateShow a ValidatingAdmissionPolicy that blocks containers without resource limits.AdvancedHow do you roll out default-deny NetworkPolicies in a running production cluster?IntermediateFalco or Tetragon for runtime security: how do you choose and run it?Advanced