mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +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,...]]
|
||||
|
|
@ -43,16 +44,18 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To deploy a container to the service my-backend on Cloud Run:
|
||||
|
||||
$ gcloud beta run deploy my-backend --image=gcr.io/my/image
|
||||
$ gcloud beta 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 beta run deploy --image=gcr.io/my/image
|
||||
$ gcloud beta run deploy --image=us-docker.pkg.dev/project/image
|
||||
|
||||
To deploy to Cloud Run on Kubernetes Engine, you need to specify a cluster:
|
||||
|
||||
$ gcloud beta run deploy --image=gcr.io/my/image --cluster=my-cluster
|
||||
$ gcloud beta 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
|
||||
|
|
@ -205,6 +208,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.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ SYNOPSIS
|
|||
| --clear-binary-authorization --clear-key
|
||||
| --key=KEY --clear-post-key-revocation-action-type
|
||||
| --post-key-revocation-action-type=POST_KEY_REVOCATION_ACTION_TYPE]
|
||||
[--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,...]]
|
||||
|
|
@ -303,6 +304,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