Skip to content

Small web app to print Google Cloud compute region it’s deployed to

License

Notifications You must be signed in to change notification settings

ahmetb/zone-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zone Printer demo application

This web application prints the Google Cloud datacenter it’s running on with information about where the datacenter is located (city, country and flag).

It's used to demonstrate global load balancing capabilities of Google Cloud HTTPS Load Balancer, as it routes the request to the compute region closest to the visitor.

Example:

Welcome from Google Cloud datacenters at:
The Dalles, Oregon, USA

You are now connected to "us-west1"

Deploy to Cloud Run

Clone this application, then build and deploy the image:

gcloud beta run deploy zone-printer \
        --platform=managed --allow-unauthenticated \
        --source=.

Follow the Serving traffic from multiple regions tutorial from Cloud Run documentation to see how you can deploy this application to all regions and set up a load balancer on top.

If you want to automate further, check out this Terraform guide for achieving the same task.


This is not an official Google project.

About

Small web app to print Google Cloud compute region it’s deployed to

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published