Skip to content
$ lynuxpro
← All system designs

SENIOR · 13 MIN · PLATFORM · DEVOPS · SRE

Multi-tenant Kubernetes platform

Many teams on shared clusters, safely: namespaces, RBAC, quotas, network policies, admission policies, node pools and cost per team.

Peak load
2,400 vCPU, 40 teams
Availability target
99.95% (API)
RTO: back up within
2 hours (rebuild)
RPO: data you can lose
0 for stateless

← Swipe sideways to see the whole diagram →

InfrastructureClientServiceSecurityData storeasync / background

The question

"Design a shared Kubernetes platform for 40 teams. Teams must not break or see each other's apps, and costs must be fair."

Requirements

  • Each team deploys on its own, through Git.
  • One team can't use all the CPU, read another team's secrets or reach its pods.
  • Special workloads (GPUs, noisy batch jobs) don't hurt normal apps.
  • Show cost per team.

How it works

  1. Each team gets one or more namespaces, created from a template: RBAC roles bound to the team's SSO group, a ResourceQuota, LimitRange defaults, and a default-deny NetworkPolicy.
  2. Argo CD AppProjects limit each team to its own repos and namespaces.
  3. Admission policies (Kyverno or OPA Gatekeeper) block risky settings: privileged pods, latest image tags, missing resource requests, images from unapproved registries.
  4. Node pools with taints separate GPU, batch and system workloads; teams opt in with tolerations.
  5. Every resource is labelled with team, so Kubecost or cloud tools show cost per team.

Soft vs hard isolation

OptionIsolationWhen
Namespaces in a shared clustersoft: same kernel and control planemost internal teams
Virtual clusters (vcluster)medium: own API server, shared nodesteams needing cluster-admin-like power
Separate clustershardcompliance (PCI), untrusted code, very noisy workloads

Remember it: namespaces are folders with locks, not separate buildings. Use separate clusters when you truly need walls.

What breaks and how it heals

  • Noisy neighbour: quotas and limits, priority classes, and separate node pools for heavy jobs.
  • Control plane overload from one team's operator or huge watch counts: API priority and fairness, and limits on CRDs.
  • Cluster upgrade affects everyone: blue-green clusters or upgrade in waves with PodDisruptionBudgets in every namespace.

Load and capacity

ItemAssumptionResult
Cluster150 nodes × 16 vCPU2,400 vCPU
Quotassum of all team quotas ≤ 80% of allocatableroom for system pods and spikes
Pods per nodeKubernetes default max 110~16,500 pods max; plan for far fewer
Kubernetes limitstested up to 5,000 nodes and 150,000 pods per clustersplit into more clusters long before that

High availability and disaster recovery

TargetNumberHow it is met
Control plane99.95%managed control plane across 3 AZs (EKS's published SLA is 99.95%)
Node or AZ failsapps keep runningnode groups in 3 AZs, topology spread, PodDisruptionBudgets
Cluster lostRTO ~2 hoursrebuild with Terraform, then Argo CD re-syncs every app from Git
Stateless appsRPO 0everything is in Git
Stateful dataRPO 6 hours with Velero volume backups, or near 0 when data lives in managed databaseskeep important data out of the cluster
Upgradesno downtimeblue-green clusters or rolling node pools, one wave at a time

What interviewers listen for

  • Layers of isolation (RBAC, network, admission, quotas) and their limits.
  • When to choose separate clusters.
  • Cost visibility and upgrade strategy for a shared platform.