Interview Prep/Kubernetes/Security, RBAC and policy

How do you secure access to the API server on EKS?

IntermediateScenarioSecurity, RBAC and policy
Answer

Situation read → The cluster endpoint is open to the world.

What I'd do →

  1. Set the endpoint to private or restrict publicAccessCidrs
  2. Use IAM authentication with access entries and least-privilege groups
  3. Enable control plane logging (api, audit, authenticator)
  4. Remove the creator admin where possible
  5. Use SSO and short-lived tokens for humans

Why → Reducing exposure and authenticating through IAM covers most risk.

Interview tip → Mention aws eks update-cluster-config.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security, RBAC and policy