Zone Printer Save

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

Project README

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.

Open Source Agenda is not affiliated with "Zone Printer" Project. README Source: ahmetb/zone-printer
Stars
25
Open Issues
0
Last Commit
3 years ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating