Cloud Run
Cloud Run
The The Google Cloud Toolbox A simple, opinionated and minimalist documentation site for google cloud.
Note
Cloud Run is a serveless for run containers, you can do over managed platform o GKE. IMO the best place for your workloads
Info
- pay for use
- min insances from 0
- max instances
- only internal traffic
- eggress to VPC (all / internal)
- great portability
Create
gcloud run deploy run-service --image gcr.io/...... --set-env-vars foo=lol --memory 1G --allow-unauthenticated --region europe-west1 --project myproject
delete
gcloud run services delete run-service --region europe-west1 --project=myProject --quiet
auth call to cloud run
curl -X GET -H "Authorization: Bearer $(gcloud auth print-identity-token)" https://hello-cloudunuri-uc.a.run.app
Tip
You can find example images here Google containers images repo
Tip
There is a very good list of resources in Awesome Cloud Run