Simple metadata server that loads the metadata object into memory and serves
based on /:tokenID
.
Deployed using cloud run, CI/CD using cloud build.
To create two regional deployments in us-central1 and europe-west1:
./hack/deploy.sh
To provision the load balancer (create backend service, URL-maps, SSL cert, endpoint groups, forwarding rules):
./hack/setup-load-balancing.sh
After the load balancer provisioning completes, the A-record needs to be added to the DNS configuration (steps might differ based on the domain provider).
The IP of the load balancer can be grabbed using:
gcloud compute addresses describe $PROJECT_ID-ip \
--global \
--format 'value(address)'
In order to add a redirect from HTTP to HTTPS:
./hack/setup-http-to-https-redirect.sh