Multi-tenant SaaS Platforms — Cells, Rings & Progressive Delivery›Edge, isolation and cost · Cheat sheet & self-check

Edge, isolation and cost · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

07 · The global edge

Edge building blocks

Anycast CDN / edge networkOne IP announced worldwide; users reach the nearest point of presence
WAF and bot protectionOWASP rules, rate rules, managed signatures at the edge
Origin protectionCells accept traffic only from the edge (private link, mTLS or signed headers)
Cell gatewayGateway API implementation per cell: JWT checks, per-tenant limits, routing
Global rate-limit serviceShared counters (e.g. Envoy rate limit service with Redis) across replicas

08 · Dedicated and regulated cells

Cluster labels that drive placement

fleet.example.io/tenancy: shared | dedicatedShared cell or one customer's cell
fleet.example.io/compliance: standard | regulatedWhich policies and add-ons apply
fleet.example.io/region: eu-west | us-gov-westWhere data may live
fleet.example.io/ring: 0 | 1 | 2 | 3Rollout order (regulated usually last)

09 · Operating a fleet of cells

Labels every signal should carry

cellWhich cell (cluster label copied into metrics, logs and traces)
ringRollout ring of that cell
tenantOnly where cardinality allows (logs, traces, aggregated metrics)
service, versionWhat is running, to compare canary and stable

10 · Cost per tenant

OpenCost allocation API

kubectl -n opencost port-forward svc/opencost 9003:9003Reach the API locally
curl -s 'localhost:9003/allocation/compute?window=1d&aggregate=namespace&accumulate=true'Cost per namespace for the last day
curl -s 'localhost:9003/allocation/compute?window=7d&aggregate=label:tenant.example.io/id&accumulate=true'Cost per tenant label for a week

Make labels visible

metricLabelsAllowlist: [ pods=[*], namespaces=[tenant.example.io/id,team,cost-center] ]kube-state-metrics values: export these labels