Edge, isolation and cost · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Edge building blocks
Anycast CDN / edge network | One IP announced worldwide; users reach the nearest point of presence |
WAF and bot protection | OWASP rules, rate rules, managed signatures at the edge |
Origin protection | Cells accept traffic only from the edge (private link, mTLS or signed headers) |
Cell gateway | Gateway API implementation per cell: JWT checks, per-tenant limits, routing |
Global rate-limit service | Shared counters (e.g. Envoy rate limit service with Redis) across replicas |
Cluster labels that drive placement
fleet.example.io/tenancy: shared | dedicated | Shared cell or one customer's cell |
fleet.example.io/compliance: standard | regulated | Which policies and add-ons apply |
fleet.example.io/region: eu-west | us-gov-west | Where data may live |
fleet.example.io/ring: 0 | 1 | 2 | 3 | Rollout order (regulated usually last) |
Labels every signal should carry
cell | Which cell (cluster label copied into metrics, logs and traces) |
ring | Rollout ring of that cell |
tenant | Only where cardinality allows (logs, traces, aggregated metrics) |
service, version | What is running, to compare canary and stable |
OpenCost allocation API
kubectl -n opencost port-forward svc/opencost 9003:9003 | Reach 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 |