One app served from two GKE clusters in two regions, behind a single global entry point.
vpc/- Terraform for a VPC with one subnet ineurope-west4and one ineurope-west2gke-primary/,gke-secondary/- Terraform for two GKE Autopilot clusters, one per regiondeploy/- a sample app (Google'swhereami) exposed through aMultiClusterServiceand aMultiClusterIngressconfiguration_commands.sh- thegcloudandkubectlsteps to register both clusters to a fleet and enable multi-cluster ingress
- Set
project_idin eachvariables.tfto your GCP project. terraform applyinvpc/, then ingke-primary/andgke-secondary/.- Follow
configuration_commands.sh. kubectl apply -f deploy/on the config cluster.
whereami tells you which cluster answered, so you can watch traffic go to the closest region.
Heads up: this creates real GCP resources that cost money. Run terraform destroy when you're done.
