GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kumarprabhashanand/k8s-multi-region-cluster: Multi-region GKE with Terraform, MultiClusterService and MultiClusterIngress

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
deploy
deploy
 
 
gke-primary
gke-primary
 
 
gke-secondary
gke-secondary
 
 
vpc
vpc
 
 
README.md
README.md
 
 
architecture.png
architecture.png
 
 
configuration_commands.sh
configuration_commands.sh
 
 

Repository files navigation

k8s-multi-region-cluster

One app served from two GKE clusters in two regions, behind a single global entry point.

architecture

  • vpc/ - Terraform for a VPC with one subnet in europe-west4 and one in europe-west2
  • gke-primary/, gke-secondary/ - Terraform for two GKE Autopilot clusters, one per region
  • deploy/ - a sample app (Google's whereami) exposed through a MultiClusterService and a MultiClusterIngress
  • configuration_commands.sh - the gcloud and kubectl steps to register both clusters to a fleet and enable multi-cluster ingress

Run it

  1. Set project_id in each variables.tf to your GCP project.
  2. terraform apply in vpc/, then in gke-primary/ and gke-secondary/.
  3. Follow configuration_commands.sh.
  4. 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.

About

Multi-region GKE with Terraform, MultiClusterService and MultiClusterIngress

Topics

gcpgkekubernetesmulti-regionterraform

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.