Field contextLesson 3 of 4
Multi-cluster and platform engineering
Past a certain size, one cluster becomes many and kubectl becomes a platform. Learn when to split clusters, how fleets are managed with GitOps, and what an internal developer platform adds.
Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.
A single cluster is the simplest thing that works, and many organizations should stay there. Others outgrow it: a regional outage takes everything down, a regulator wants data kept in-country, or one team’s admission webhook breaks deploys for everyone. From then on the unit of operation is a fleet, and the people running it are building a platform whether they call it that or not.
Reconcile, in 6 scenes
Why more than one cluster
A cluster is a shared failure domain. A bad CRD upgrade, a broken admission webhook, an API server overloaded by one noisy controller, or a control plane upgrade gone wrong affects every workload in it. Separate clusters buy blast-radius limits, regional placement, compliance boundaries and upgrade isolation: upgrade a canary cluster first and the rest only once it holds.
| Model | Isolation | Cost and toil |
|---|---|---|
| One shared cluster | Namespaces, RBAC, quotas and NetworkPolicies: soft multi-tenancy | Lowest; one set of add-ons to upgrade |
| Cluster per environment | Production is safe from dev and staging changes | Moderate; tests the upgrade path before production |
| Cluster per team or tenant | Hard isolation, separate credentials and upgrade schedules | Highest; every cluster needs add-ons, monitoring and upgrades |
Kubernetes’ own guidance treats namespaces as soft isolation among trusted teams and separate clusters (or control planes) as the boundary for untrusted tenants. Every extra cluster is a control plane to pay for and a set of add-ons to keep current, so split for a reason you can name.
Fleet management
KubeFed, the first attempt at federating resources across clusters, is archived: SIG Multicluster retired it in 2023. Fleets are managed with GitOps instead. An Argo CD ApplicationSet with a cluster generator stamps out one Application per registered cluster whose labels match; adding a cluster Secret with the right labels is how a cluster joins the fleet and gets its add-ons.
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: platform-addons
namespace: argocd
spec:
goTemplate: true
generators:
- clusters:
selector:
matchLabels:
env: prod
template:
metadata:
name: 'addons-{{.name}}'
spec:
project: default
source:
repoURL: https://github.com/example/platform.git
targetRevision: main
path: addons
destination:
server: '{{.server}}'
namespace: platform
syncPolicy:
automated:
prune: true
selfHeal: true
Karmada (a CNCF graduated project since September 2026) and Open Cluster Management add placement policies on top: run this workload in two clusters in different regions, move it if one fails. Cluster API manages the clusters themselves as Kubernetes objects, so a management cluster creates, upgrades and deletes workload clusters from declarative specs.
Fleet upgrades drain a lot of nodes, and each drain asks the eviction API before removing a pod. The ReplicaSet controller in kube-controller-manager recreates evicted pods elsewhere; ReplicationController is the legacy API that ReplicaSets and Deployments replaced. A PodDisruptionBudget that allows no disruptions stops all of it:
kubectl get pdb api
NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE api 2 N/A 0 20s
kubectl drain kx-worker --ignore-daemonsets --timeout=6s
node/kx-worker cordoned Warning: ignoring DaemonSet-managed Pods: kube-system/kindnet-gxcgn, kube-system/kube-proxy-rxfcc evicting pod default/api-866657c86f-dmf7z error when evicting pods/"api-866657c86f-dmf7z" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget. evicting pod default/api-866657c86f-dmf7z error when evicting pods/"api-866657c86f-dmf7z" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget. There are pending pods in node "kx-worker" when an error occurred: error when evicting pods/"api-866657c86f-dmf7z" -n "default": global timeout reached: 6s pod/api-866657c86f-dmf7z error: unable to drain node "kx-worker" due to error: error when evicting pods/"api-866657c86f-dmf7z" -n "default": global timeout reached: 6s, continuing command... There are pending nodes to be drained: kx-worker error: error when evicting pods/"api-866657c86f-dmf7z" -n "default": global timeout reached: 6s
Across a fleet, one such budget stalls node upgrades and autoscaler consolidation everywhere it is deployed. A platform template should ship a budget that always allows one eviction:
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: api
spec:
maxUnavailable: 1
selector:
matchLabels:
app: api
Cross-cluster traffic
Three patterns connect clusters. DNS failover points a global name at healthy regional endpoints, with health checks deciding which answer to give. The Multi-Cluster Services API exports a Service with a ServiceExport object and makes it resolvable in every cluster of a clusterset as name.namespace.svc.clusterset.local. Mesh federation shares identity and routing across clusters: Istio multicluster, whose ambient mode (GA in Istio 1.24) reached beta for multi-network multicluster in 1.29. Linkerd’s open-source project has shipped only edge releases since 2.15, and Consul has been under the Business Source License since August 2023. Gateway API, through its GAMMA work in the Standard channel since v1.1.0, gives meshes a shared routing API.
An ExternalName Service looks like a shortcut and is not one:
kubectl get service orders-east
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE orders-east ExternalName <none> api.example.com <none> 20s
kubectl exec dnsutils -- nslookup orders-east
Server: 10.96.0.10 Address: 10.96.0.10#53 orders-east.default.svc.cluster.local canonical name = api.example.com. Name: api.example.com Address: 203.0.113.10
kubectl get endpointslices -l kubernetes.io/service-name=orders-east
No resources found in default namespace.
Platforms
An internal developer platform is the set of paved roads that lets a team ship without filing tickets: a template that creates a repository, a pipeline and a Deployment with probes, a disruption budget and topology spread already right; self-service namespaces with quotas, RBAC and default NetworkPolicies; and a catalog that says who owns what. Backstage, a CNCF incubating project since March 2022, is the common portal. API gateways in these stacks include Kong and Emissary-ingress (the project formerly called Ambassador).
Platform APIs are often Kubernetes objects themselves. Crossplane v2 composes cloud resources behind a custom API: Compositions use mode: Pipeline with functions such as function-patch-and-transform, the XRD kind and its claimNames.kind must differ (XDatabase and Database), and only LegacyCluster XRs support claims. The Upjet AWS providers use groups such as rds.aws.upbound.io. kro defines a ResourceGraphDefinition that becomes a custom API and expands into the resources behind it.
Infrastructure as code
Clusters are rebuilt, not repaired, so their definition lives in Terraform or OpenTofu (a Linux Foundation project since September 2023 and a CNCF Sandbox project since 2025-04-23). The rules that keep that safe:
- Commit
.terraform.lock.hclso every run uses the same provider builds. - Lock state with the S3 backend’s
use_lockfile = true; DynamoDB locking is deprecated. - Review a saved plan (
terraform plan -out=tfplan) and apply that file, never a fresh plan. - Import existing resources with
importblocks andterraform plan -generate-config-out. - Use the
_v1resources of the Kubernetes provider (kubernetes_namespace_v1); provider 3.0.0 deprecated the unversioned ones. - Never deploy
:latestfrom Terraform: the spec never changes, so a re-pushed image is invisible to it. - In Terragrunt, name the root file
root.hcland include it withfind_in_parent_folders("root.hcl").
Measuring delivery and ownership
DORA’s software delivery metrics measure the platform by its effect on teams. There are five: change lead time, deployment frequency, failed deployment recovery time (which replaced mean time to restore), change fail rate and deployment rework rate. Cite the report year with any benchmark: elite lead time was under one hour in 2021 and under one day in 2023 and 2024; change fail rates by tier were 5%, 10%, 15% and 64% in 2023, and 5%, 20%, 10% and 40% for elite, high, medium and low in 2024. The 2025 report replaced tiers with seven team archetypes and an AI Capabilities Model.
Alongside them, track toil (manual, repetitive work that scales with the service) and give every service one owning team in the catalog. Google’s SRE practice caps operational work at half of an engineer’s time; the platform’s job is to automate whatever pushes past that.
kubectl --context kind-kx create deployment orders --image=nginx:1.30 --replicas=2kubectl --context kind-kx create pdb orders --selector=app=orders --min-available=2kubectl --context kind-kx get pdb orderskubectl --context kind-kx drain kx-worker --ignore-daemonsets --timeout=20skubectl --context kind-kx uncordon kx-workerkubectl --context kind-kx delete pdb,deployment orders
For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The budget shows 0 allowed disruptions and the drain times out if an orders pod is on kx-worker; uncordon returns the node to service.
Actual state
Check your understanding
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
Lesson not yet reconciled
Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met
- Choose between one shared cluster, a cluster per environment and a cluster per team. (not yet met)
- Describe how GitOps and fleet tools manage many clusters. (not yet met)
- Explain what an internal developer platform adds on top of Kubernetes. (not yet met)
- Provision clusters reproducibly with infrastructure as code. (not yet met)
Pass every check above to reconcile this lesson.
Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.
Changed since the notes
This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.
Show 44 corrections
The notes saidAmbient mesh (Istio ambient): node-level proxies instead of pod sidecars; L7 features require waypoint proxies (grouped)
CorrectedIstio ambient mode is GA since Istio 1.24 (Nov 2024). A per-node ztunnel provides L4 features (mTLS, L4 authorization, telemetry), and optional waypoint proxies (Envoy) per namespace or service provide L7 features such as HTTP routing and L7 authorization. The most recent Istio release as of 2026-11-19 is 1.32.
The notes saidMulti-cluster management tools (Rancher, OpenShift, Anthos); API gateways Kong, Ambassador
CorrectedAnthos was folded into GKE Enterprise (2023). The open-source Ambassador API Gateway is Emissary-ingress, an active CNCF project.
The notes saidkeda.sh/v1alpha1 ScaledObject with aws-sqs-queue trigger
Correctedkeda.sh/v1alpha1 is still the API. The aws-sqs-queue trigger takes queueURL (or queueURLFromEnv), awsRegion (required) and queueLength (default 5). Authenticate with a TriggerAuthentication using podIdentity.provider: aws. identityOwner has been deprecated since KEDA 2.13 and applies only to the aws-eks provider. Whether aws-eks has been removed is unconfirmed. The most recent KEDA release as of 2026-11-19 is v2.21.1.
The notes saidService mesh / API gateway framing
CorrectedGateway API (v1.0 GA in Oct 2023) is the Kubernetes standard for gateway routing, and its service-mesh support (GAMMA) has been in the Standard channel since v1.1.0 (May 2024). The most recent Gateway API release as of 2026-11-19 is v1.7.0.
Sourcegateway-api.sigs.k8s.io/docs/mesh/%20;%20https://kubernetes.io/blog/2024/05/09/gateway-api-v1-1
The notes saidThe KEDA ScaledObject has no authenticationRef or awsRegion, so the SQS scaler fails
CorrectedConfirmed for awsRegion, which the aws-sqs-queue scaler requires, so the trigger as written is invalid. Add awsRegion plus an authenticationRef to a TriggerAuthentication (podIdentity provider aws). The scaler docs don't say what happens with no authenticationRef (unconfirmed).
The notes saidPDB minAvailable: 2 shown without a replica count
CorrectedConfirmed. With exactly 2 replicas, minAvailable: 2 allows zero voluntary disruptions, so kubectl drain, node upgrades and Cluster Autoscaler or Karpenter consolidation can't evict those pods. Run more replicas than minAvailable or use maxUnavailable: 1.
Sourcekubernetes.io/docs/tasks/run-application/configure-pdb
The notes saidSCPs have a 5,120 character limit per policy (and max 5 SCPs per target).
CorrectedIn May 2026 AWS Organizations doubled both SCP quotas: an SCP document can be up to 10,240 characters and up to 10 SCPs can be attached directly to the root, each OU and each account (hard limits; inherited SCPs do not count). Resource control policies (RCPs) keep the old values: 5,120 characters and 5 per entity. Whitespace counts unless the policy is saved through the console, which strips whitespace outside quotes.
The notes saidDeny-list is the common SCP pattern; SCPs only limit and use FullAWSAccess + Deny statements.
CorrectedSCPs still never grant permissions, and deny-list (keep FullAWSAccess, add Deny statements) is still the common pattern. Since September 2025 SCPs support the full IAM policy language: Allow statements can use Condition, Resource/NotResource and NotAction, so allow-list SCPs can be scoped (for example Allow with an aws:RequestedRegion condition). Only Principal/NotPrincipal remain unsupported. Teach both patterns with the current grammar.
The notes saidControl Tower provides predefined 'guardrails' and an account factory.
CorrectedAWS Control Tower calls these 'controls' (the docs note the old term 'guardrail' as a synonym). Controls are preventive (SCPs, RCPs, declarative policies), detective (AWS Config rules) or proactive (CloudFormation hooks), and are browsed in the Control Catalog (formerly the controls library). Account Factory still exists, alongside Account Factory for Terraform (AFT).
The notes saidThe management account is formerly called master account; SCPs never affect it.
CorrectedBoth statements are correct: the master account was renamed to management account in October 2020, and SCPs do not affect users or roles in the management account (they do apply to delegated-administrator member accounts). The lesson leaves out the newer Organizations controls: resource control policies (RCPs, a resource-side perimeter that also does not apply to the management account), declarative policies (enforce EC2/VPC/EBS configuration in the service control plane), and IAM centralized root access management (remove member-account root credentials, run privileged root tasks via short-term root sessions).
The notes saidRestricting expensive services: prevent P3 GPU instances in development accounts.
CorrectedP3 (NVIDIA V100) is not in the EC2 current-generation accelerated computing list. Current high-cost GPU families are P5, P5e, P5en (H100/H200) and P6-B200 / P6-B300 (Blackwell). A durable example denies ec2:RunInstances when ec2:InstanceType matches p5, p6 (or p* generally) in development OUs.
The notes saidManagement account 'can access any account through organizations:* permissions'.
Correctedorganizations:* manages the organization (accounts, OUs, policies); it gives no access to resources inside member accounts. Access requires sts:AssumeRole into a role in the member account, typically OrganizationAccountAccessRole, which Organizations creates automatically only for accounts created through Organizations (not for invited accounts; Control Tower/AFT may use another role name). New member accounts have no root credentials by default, and centralized root access can remove root credentials from existing ones.
Sourcedocs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html
The notes saidSCPs apply to all principals in member accounts.
CorrectedSCPs restrict IAM users and roles in member accounts, including the member account root user, but they do not affect service-linked roles, do not affect the management account, and do not restrict principals from outside the organization who access resources through resource-based policies (that is what RCPs address).
Sourcedocs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html
The notes said'The replication controller ensures the right number of pods run'.
CorrectedReplicationController is a legacy API superseded by Deployment and ReplicaSet. The ReplicaSet controller (inside kube-controller-manager) keeps the replica count for ReplicaSets, which Deployments create and manage.
Sourcekubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
The notes saidKubeFed (types.kubefed.io/v1beta1) federates resources across clusters
CorrectedKubeFed is archived as kubernetes-retired/kubefed (SIG Multicluster archived it in 2023). Alternatives are Karmada (CNCF graduated, September 2026), Open Cluster Management, and Argo CD ApplicationSets with a cluster generator. This also applies to note 86's multi-cluster DNS via KubeFed.
The notes saidAWS App Mesh provides a mesh that can span EKS clusters (repeated in notes 83, 84 and 85)
CorrectedApp Mesh support ended 2026-09-30, and its console and resources are no longer accessible. On EKS, use VPC Lattice through the AWS Gateway API Controller, or Istio.
Sourcedocs.aws.amazon.com/app-mesh/latest/userguide/appmesh-integrations.html
The notes saidEKS Connector registers external clusters with the EKS console
CorrectedStill offered as a read-only console view of non-EKS clusters (aws eks register-cluster plus the eks-connector agent). The separate EKS Dashboard aggregates EKS clusters across accounts and Regions through AWS Organizations.
Sourcedocs.aws.amazon.com/eks/latest/userguide/eks-connector.html
The notes saidIstio, Linkerd and Consul Connect support multi-cluster mesh
CorrectedIstio ambient multi-network multicluster reached beta in 1.29 (February 2026). Since 2.15 (February 2024), Linkerd open source ships only edge releases; stable builds come from Buoyant Enterprise. Consul has been under the Business Source License since August 2023.
The notes saidAn ExternalName Service is a drop-in for cross-cluster calls
CorrectedExternalName returns only a CNAME. It does no port remapping and has no endpoints, and HTTP Host and TLS SNI carry the alias name. The Kubernetes docs warn against using it for HTTP and HTTPS.
Sourcekubernetes.io/docs/concepts/services-networking/service#externalname
The notes saidCrossplane RDSInstance in database.aws.crossplane.io/v1beta1 (claimed to be from an archived provider)
Correctedcrossplane-contrib/provider-aws is not archived, but it is the older community provider. The Upjet family (provider-upjet-aws, provider-aws-rds) uses rds.aws.upbound.io/v1beta1 Instance. Namespaced Crossplane v2 MR groups were not verified.
The notes saidComposition uses spec.resources (native patch-and-transform)
CorrectedCrossplane v2 removed native patch-and-transform, which was deprecated in v1.17. Use mode: Pipeline with function-patch-and-transform. Crossplane is at v2.4.x.
The notes saidClaims let developers request resources
CorrectedIn Crossplane v2, namespaced and cluster-scoped XRs do not support claims. Only LegacyCluster XRs keep them.
The notes saidBackstage is a CNCF project
CorrectedBackstage has been CNCF incubating since March 2022 and is not graduated. The new backend system is the default, and legacy backend support was removed by v1.42.
The notes saidACK as the automation layer
CorrectedACK, kro and Argo CD are also available as AWS-managed EKS Capabilities.
Sourcedocs.aws.amazon.com/eks/latest/userguide/capabilities.html
The notes saidXRD composite kind and claim kind both 'Database'
CorrectedThe XRD kind and claimNames.kind must differ, for example XDatabase and Database.
Sourcedocs.crossplane.io/v1.20/concepts/composite-resource-definitions
The notes saidS3 backend locking with dynamodb_table
CorrectedDynamoDB locking is deprecated and will be removed in a future minor version. Use use_lockfile = true. Terraform is at 1.17.2.
The notes saidterraform-aws-modules/eks 19.0.0 with cluster_name/cluster_version
Correctedv20 added access entries. v21 renamed cluster_name to name and cluster_version to kubernetes_version, and requires AWS provider 6.0 or later. The module is at v21.30.2.
Sourcegithub.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/UPGRADE-21.0.md
The notes saidcluster_version = "1.28"
Corrected1.28 is out of all EKS support. Standard support covers 1.34-1.37 and extended support covers 1.31-1.33.
Sourcedocs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html
The notes saidterraform-aws-modules/vpc 3.0.0
CorrectedThe VPC module is at v6.8.0.
Sourcegithub.com/terraform-aws-modules/terraform-aws-vpc/releases
The notes saidhashicorp/aws ~> 5.0
Correctedv6.0 went GA in June 2025, and the provider is at v6.73.0.
Sourcehashicorp.com/blog/terraform-aws-provider-6-0-now-generally-available
The notes saidTerraform 1.5.0, checkout@v3, setup-terraform@v2, configure-aws-credentials@v2
CorrectedTerraform is at 1.17.2. The action majors are actions/checkout v7, hashicorp/setup-terraform v4 and aws-actions/configure-aws-credentials v6.
The notes saidkubernetes_namespace / kubernetes_deployment resources
CorrectedDeprecated in hashicorp/kubernetes provider 3.0.0 (2025-12-03). Use the _v1 resources.
Sourcegithub.com/hashicorp/terraform-provider-kubernetes/blob/main/CHANGELOG.md
The notes saidTerragrunt path = find_in_parent_folders()
CorrectedThe no-argument form looks for a root terragrunt.hcl. Terragrunt recommends root.hcl with find_in_parent_folders("root.hcl"), and the root-terragrunt-hcl strict control turns the old form into an error.
Sourcedocs.terragrunt.com/migrate/migrating-from-root-terragrunt-hcl
The notes saidOpenTofu is an open-source fork
CorrectedOpenTofu has been a Linux Foundation project since September 2023 and a CNCF Sandbox project since 2025-04-23.
The notes saidUse the terraform import CLI
Correctedimport blocks (Terraform 1.5+) with terraform plan -generate-config-out are the config-driven way to import.
The notes saidLock file is named terraform.lock.hcl
CorrectedThe lock file is .terraform.lock.hcl.
Sourcedeveloper.hashicorp.com/terraform/language/files/dependency-lock
The notes saidOIDC workflow without permissions: id-token: write
Correctedid-token: write is required for OIDC role assumption, plus contents: read for checkout.
The notes saidApply on main runs apply -auto-approve on a fresh plan
CorrectedThat applies a plan nobody reviewed. Save the reviewed plan with plan -out, then apply that file.
The notes saidaws_instance examples omit ami
Correctedami is required unless a launch_template supplies the AMI.
Sourceregistry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
The notes saidDeploy my-app:latest via kubernetes_deployment
CorrectedThe spec never changes, so Terraform never sees a re-pushed image. Pin a tag or digest.
The notes saidChange failure rate tiers Elite 0-15/High 16-30/Medium 31-45/Low 46-60
CorrectedNo DORA report uses these tiers. The 2023 report has 5/10/15/64%. The 2024 report has Elite 5%, High 20%, Medium 10% and Low 40%.
Sourceservices.google.com/fh/files/misc/2024_final_dora_report.pdf
The notes saidMTTR is the fourth DORA metric
CorrectedMTTR was replaced by failed deployment recovery time.
The notes saidFour DORA metrics with Elite-Low tiers
CorrectedThere are five metrics, adding deployment rework rate. The 2025 report uses seven team archetypes and an AI Capabilities Model instead of tiers.
Sourceservices.google.com/fh/files/misc/2025_state_of_ai_assisted_software_development.pdf
The notes saidElite lead time is under one day
CorrectedThis matches 2023/2024 ('less than a day'). In 2021, elite was under one hour. Cite the report year.
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- kubernetes.io/docs/concepts/security/multi-tenancy
- argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators-Cluster
- cluster-api.sigs.k8s.io
- github.com/kubernetes-retired/kubefed
- karmada.io/docs
- multicluster.sigs.k8s.io/concepts/multicluster-services-api
- github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api
- kubernetes.io/docs/concepts/services-networking/service
- kubernetes.io/docs/concepts/workloads/pods/disruptions
- docs.crossplane.io/latest
- kro.run/docs/overview
- opentofu.org/docs
- dora.dev/guides/dora-metrics
- docs.aws.amazon.com/whitepapers/latest/organizing-your-aws-environment/organizing-your-aws-environment.html
- docs.aws.amazon.com/eks/latest/userguide/capabilities.html
Multi-cluster and platform engineering
↓ ↑ step, 1 to 6 scene, Esc leave