How do you limit which namespaces teams can see in a multi-tenant cluster?
IntermediateScenarioSecurity, RBAC and policy
Answer
Situation read → Teams share one EKS cluster.
What I'd do →
- One namespace per team with RoleBindings to team groups
- ResourceQuota and LimitRange per namespace
- Default-deny NetworkPolicy
- PSA restricted
- Separate node pools via taints for sensitive tenants
Why → Namespaces are a soft boundary and need quota, network and RBAC controls.
Interview tip → Say hard isolation needs separate clusters.
More on Security, RBAC and policy
A developer needs read-only access to one namespace. How do you grant it?BeginnerExplain the difference between Role, ClusterRole, RoleBinding and ClusterRoleBinding.IntermediateA CI pipeline needs to deploy to one namespace. What identity do you give it?IntermediateWhat does a ServiceAccount do and why should you disable the token automount?BeginnerHow do you let pods on EKS access S3 without static keys?IntermediateA pod has access to the node's IAM role through IMDS. How do you prevent credential theft?Advanced