GCP Cloud Architecture (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
How does GKE multi-tenancy work (Namespace isolation, NetworkPolicies, and GKE Workload Identity)?
senior LevelgcpAdvanced Internals
In Simple Words:
- Namespaces: Logical separation of resources per tenant.
- NetworkPolicies (Calico / Datapath v2 - eBPF): Restricts east-west pod traffic so pods in
tenant-acannot communicate with pods intenant-b. - GKE Workload Identity: Maps a Kubernetes ServiceAccount (KSA) directly to a Google Cloud IAM ServiceAccount (GSA), ensuring Pod A cannot access resources owned by Pod B.
- ResourceQuotas & LimitRanges: Caps CPU/RAM consumption per tenant.