Kubernetes Administration — Level by Level›Level 5 · Cheat sheet & self-check

Level 5 — Architect · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

28 · Multi-cluster & fleet management

Cluster API (clusterctl)

clusterctl init --infrastructure <provider>Turn a cluster into a management cluster
clusterctl generate cluster <name> --kubernetes-version <v> > cluster.yamlGenerate a workload cluster definition
kubectl apply -f cluster.yamlCreate it (declaratively)
clusterctl describe cluster <name>Tree view of the cluster's machines and conditions
clusterctl get kubeconfig <name> > <name>.kubeconfigGet access to the new cluster
kubectl get clusters,machinedeployments,machinesFleet objects in the management cluster

Fleet GitOps

argocd cluster add <context>Register a cluster with Argo CD
kubectl get applicationsets -n argocdTemplates that fan out apps to clusters

29 · Multi-tenancy models

Tenant kit (per namespace)

kubectl create namespace team-aThe tenant boundary
kubectl label ns team-a pod-security.kubernetes.io/enforce=restrictedEnforce the 'restricted' Pod Security Standard
kubectl create rolebinding team-a-edit --clusterrole=edit --group=team-a -n team-aThe team may manage its own namespace
kubectl apply -f quota.yaml -f limitrange.yaml -f netpol-default-deny.yamlBudget, defaults, and network isolation

Verify isolation

kubectl auth can-i list secrets -n team-b --as-group=team-a --as=someoneCan team A read team B's secrets? (should be no)
kubectl get networkpolicy -AWhich namespaces are isolated

30 · Internal Developer Platform design

Platform building blocks

Golden pathAn opinionated, supported way to build and ship a service end to end
Platform APIA simple, declarative interface (CRD, Terraform module, template) hiding infrastructure detail
Developer portalA catalog of services, owners, docs and self-service actions (e.g. Backstage)
Guard-railsPolicies that prevent unsafe choices automatically, instead of manual approvals

Measure it

Deployment frequency / lead timeDORA: how fast changes reach production
Change failure rate / time to restoreDORA: how safely
Time to first deploy (new service)How long a golden path takes, end to end
Developer satisfactionSurvey the platform's users regularly

31 · SLOs for the platform itself

Definitions

SLIA measured ratio of good events: good ÷ total
SLOThe target for that SLI over a window, e.g. 99.9% over 30 days
Error budgetWhat the SLO allows to fail: 0.1% of 30 days ≈ 43 minutes
Burn rateHow fast the budget is being used (1 = exactly on budget)

Example PromQL

sum(rate(apiserver_request_total{code=~"5.."}[5m])) / sum(rate(apiserver_request_total[5m]))API server error ratio
histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{verb!~"WATCH|CONNECT"}[5m])) by (le))p99 API latency (excluding long-lived watches)

32 · Capstone: platform design review

Design document outline

1. Context & requirementsWho, what, scale, constraints, SLOs, RPO/RTO
2. Cluster topologyHow many clusters, where, why (with an ADR)
3. Tenancy & accessModel, tenant kit, identity, RBAC
4. LifecycleProvisioning, upgrades, waves, add-ons
5. Resilience & DRFailure domains, backups, drills, runbooks
6. Observability & SLOsSLIs, SLOs, probes, alerting
7. Cost & risksEstimate, top risks, open questions

Questions reviewers always ask

What happens when X fails?For every component and dependency
How do you upgrade it?Without downtime, repeatedly, for years
How do you know it's working?SLIs, probes, alerts
What does it cost, and what could we drop?Trade-offs made explicit