mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Wed Mar 9 08:39:30 UTC 2022
This commit is contained in:
parent
5829e94e90
commit
7d82d0fc32
210 changed files with 7192 additions and 887 deletions
|
|
@ -10,7 +10,8 @@ SYNOPSIS
|
|||
[--platform=PLATFORM; default="managed"] [--port=PORT]
|
||||
[--service-account=SERVICE_ACCOUNT] [--tag=TAG] [--timeout=TIMEOUT]
|
||||
[--no-traffic] [--[no-]use-http2]
|
||||
[--clear-env-vars | --set-env-vars=[KEY=VALUE,...]
|
||||
[--clear-env-vars | --env-vars-file=FILE_PATH
|
||||
| --set-env-vars=[KEY=VALUE,...]
|
||||
| --remove-env-vars=[KEY,...] --update-env-vars=[KEY=VALUE,...]]
|
||||
[--clear-labels | --remove-labels=[KEY,...] --labels=[KEY=VALUE,...]
|
||||
| --update-labels=[KEY=VALUE,...]]
|
||||
|
|
@ -42,16 +43,18 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To deploy a container to the service my-backend on Cloud Run:
|
||||
|
||||
$ gcloud run deploy my-backend --image=gcr.io/my/image
|
||||
$ gcloud run deploy my-backend \
|
||||
--image=us-docker.pkg.dev/project/image
|
||||
|
||||
You may also omit the service name. Then a prompt will be displayed with a
|
||||
suggested default value:
|
||||
|
||||
$ gcloud run deploy --image=gcr.io/my/image
|
||||
$ gcloud run deploy --image=us-docker.pkg.dev/project/image
|
||||
|
||||
To deploy to Cloud Run on Kubernetes Engine, you need to specify a cluster:
|
||||
|
||||
$ gcloud run deploy --image=gcr.io/my/image --cluster=my-cluster
|
||||
$ gcloud run deploy --image=us-docker.pkg.dev/project/image \
|
||||
--cluster=my-cluster
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Service resource - Service to deploy to. The arguments in this group can
|
||||
|
|
@ -204,6 +207,11 @@ FLAGS
|
|||
--clear-env-vars
|
||||
Remove all environment variables.
|
||||
|
||||
--env-vars-file=FILE_PATH
|
||||
Path to a local YAML file with definitions for all environment
|
||||
variables. All existing environment variables will be removed before
|
||||
the new environment variables are added.
|
||||
|
||||
--set-env-vars=[KEY=VALUE,...]
|
||||
List of key-value pairs to set as environment variables. All existing
|
||||
environment variables will be removed first.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue