Lesson 5 of 6 Container Platforms and Microservices

Designing Multi-Cluster Container Platforms for Resilience

This lesson explains why container platforms use more than one cluster, how clusters are kept consistent, and how data and traffic are handled for high availability and disaster recovery.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain the failures that a second cluster protects against.
  • Describe how pipelines, GitOps and replication keep clusters consistent.
  • Identify the data and traffic components a multi-Region container design needs.

Why more than one cluster

Within a cluster, tasks and pods already spread across Availability Zones, so a zone failure is handled by the scheduler. A second cluster protects against failures that affect the whole cluster: a Kubernetes version upgrade that breaks workloads, a faulty add-on, an accidental deletion or a quota problem. Blue/green cluster upgrades use the same pattern: create a cluster on the new version, deploy the workloads, shift traffic, and retire the old cluster. Across Regions, independent clusters provide disaster recovery or active-active service.

Keeping clusters consistent

Clusters must run the same versions of the same workloads, or failover moves users to a different application. Infrastructure as code creates each cluster identically; one CI/CD pipeline, or a GitOps tool such as Argo CD or Flux that reconciles each cluster against the same Git repository, deploys the workloads; ECR replication keeps images in each Region; and Secrets Manager replication copies secrets. ECS clusters are Regional, so an ECS DR design uses a second cluster created from the same templates.

  1. Define clusters as code

    Templates or modules create identical clusters and add-ons in each location.

  2. Deploy everywhere from one source

    A pipeline or GitOps tool applies the same manifests to every cluster.

  3. Replicate dependencies

    Images, secrets and configuration exist in every Region.

  4. Route and test

    Route 53 or Global Accelerator moves traffic, and failover is tested regularly.

The following diagram shows two clusters kept identical from one set of code.

Keeping two EKS clusters consistent. The same Terraform modules create both clusters, and a GitOps tool such as Argo CD in each cluster reconciles it against the same Git repository, so both run the same workloads at the same versions and either can take traffic.
Because both clusters reconcile against one repository, a deployment reaches both, and failover moves users to the same application.
Select all that apply

Consistent clusters

Exam skills 4.2.6

Identify practices that keep a standby cluster ready for failover.

Log in to try this activity Interactive activities are free with an account.

Data and traffic

Stateless services fail over easily; state determines the real recovery objectives. Data stores such as Aurora Global Database, DynamoDB global tables or S3 replication make data available in the recovery Region, and AWS Backup can protect EKS cluster state and persistent volumes for restore. Traffic moves with Route 53 health checks and failover or weighted records, Global Accelerator endpoint weights, or Application Recovery Controller for operator-controlled Regional failover.

Worked example

A booking platform on EKS

A travel company runs its booking platform on one EKS cluster in eu-west-1. A failed add-on upgrade caused a two-hour outage, and the business now wants Regional DR with an RTO of 15 minutes.

The architect creates clusters in eu-west-1 and eu-central-1 from the same Terraform modules, and Argo CD syncs both from one repository; ECR replicates images and bookings move to DynamoDB global tables.

Global Accelerator sends traffic to both Regions with weights, so either cluster can take all traffic. Cluster upgrades now happen one cluster at a time while traffic is shifted away, which removes the single-cluster failure that caused the outage.

Check yourself

Two EKS clusters in different Regions run identical stateless services. Why might failover still fail?

Show answer

The services depend on data and other resources, such as databases, images and secrets, that must also be available in the recovery Region. Without multi-Region data and replicated dependencies, the second cluster cannot serve users.

Exam Tips

Remember for the exam

  • Survive a failed cluster upgrade or misconfiguration: a second cluster and traffic shifting.
  • Keep clusters identical: one pipeline or GitOps repository for all clusters.
  • Images available in the recovery Region: ECR replication.
  • Stateless clusters in two Regions still need multi-Region data stores for real DR.