Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmetb/zone-printer
Small web app to print Google Cloud compute region it’s deployed to
https://github.com/ahmetb/zone-printer
cloud-run cloudrun
Last synced: about 1 month ago
JSON representation
Small web app to print Google Cloud compute region it’s deployed to
- Host: GitHub
- URL: https://github.com/ahmetb/zone-printer
- Owner: ahmetb
- License: apache-2.0
- Created: 2020-02-12T01:56:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T17:21:25.000Z (over 3 years ago)
- Last Synced: 2024-07-30T17:41:39.061Z (5 months ago)
- Topics: cloud-run, cloudrun
- Language: Go
- Homepage:
- Size: 45.9 KB
- Stars: 25
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this 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:
> ```text
> 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:
```sh
gcloud beta run deploy zone-printer \
--platform=managed --allow-unauthenticated \
--source=.
```Follow the [Serving traffic from multiple
regions](https://cloud.google.com/run/docs/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](https://github.com/ahmetb/cloud-run-multi-region-terraform/) for
achieving the same task.-----
This is not an official Google project.