Interview Prep/DevSecOps/Kubernetes Security

Five teams share one cluster. How do you design tenant isolation?

AdvancedScenarioKubernetes Security
Answer

Situation read → Namespaces are a soft boundary. How far to go depends on trust between tenants.

What I'd do →

  1. Per-team namespaces with RBAC, ResourceQuota and LimitRange.
  2. Default-deny NetworkPolicies; allow only declared dependencies.
  3. PSA restricted and policy engine rules (no hostPath, no hostNetwork, approved registries only).
  4. Node isolation for sensitive tenants: dedicated node pools with taints and tolerations.
  5. If tenants are untrusted (customers), use separate clusters, virtual clusters (vcluster) or sandboxed runtimes.

Why → Internal teams need guardrails; untrusted tenants need hard boundaries.

Interview tip → Say "soft multi-tenancy vs hard multi-tenancy" and when each fits.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security