mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed Aug 28 09:41:07 UTC 2024
This commit is contained in:
parent
ed5fe34b64
commit
afbe8a5afb
256 changed files with 8602 additions and 358 deletions
|
|
@ -13,7 +13,9 @@ SYNOPSIS
|
|||
[--add-volume-mount=[volume=NAME,mount-path=MOUNT_PATH,...]
|
||||
--args=[ARG,...] --clear-volume-mounts --command=[COMMAND,...]
|
||||
--cpu=CPU --depends-on=[CONTAINER,...] --gpu=GPU --image=IMAGE
|
||||
--memory=MEMORY --port=PORT --remove-volume-mount=[MOUNT_PATH,...]
|
||||
--liveness-probe=[KEY=VALUE,...] --memory=MEMORY --port=PORT
|
||||
--remove-volume-mount=[MOUNT_PATH,...]
|
||||
--startup-probe=[KEY=VALUE,...]
|
||||
--[no-]use-http2 --base-image=BASE_IMAGE
|
||||
| --clear-base-image --clear-env-vars | --env-vars-file=FILE_PATH
|
||||
| --set-env-vars=[KEY=VALUE,...] | --remove-env-vars=[KEY,...]
|
||||
|
|
@ -25,6 +27,7 @@ SYNOPSIS
|
|||
--description=DESCRIPTION
|
||||
--execution-environment=EXECUTION_ENVIRONMENT
|
||||
--[no-]invoker-iam-check --max-surge=MAX_SURGE
|
||||
--max-unavailable=MAX_UNAVAILABLE --mesh=MESH
|
||||
--remove-containers=[CONTAINER,...] --revision-suffix=REVISION_SUFFIX
|
||||
--scaling=SCALING --service-max-instances=SERVICE_MAX_INSTANCES
|
||||
--service-min-instances=SERVICE_MIN_INSTANCES --[no-]session-affinity
|
||||
|
|
@ -231,6 +234,30 @@ FLAGS
|
|||
Name of the container image to deploy (e.g.
|
||||
gcr.io/cloudrun/hello:latest).
|
||||
|
||||
--liveness-probe=[KEY=VALUE,...]
|
||||
Comma separated settings for liveness probe in the form KEY=VALUE.
|
||||
Each key stands for a field of the probe described in
|
||||
https://cloud.google.com/run/docs/reference/rest/v1/Container#Probe.
|
||||
Currently supported keys are:
|
||||
|
||||
+ initialDelaySeconds: integer
|
||||
+ timeoutSeconds: integer
|
||||
+ periodSeconds: integer
|
||||
+ failureThreshold: integer
|
||||
+ httpGet.port: integer
|
||||
+ httpGet.path: string
|
||||
+ grpc.port: integer
|
||||
+ grpc.service: string
|
||||
|
||||
For example, to set a probe with 10s timeout and HTTP probe
|
||||
requests sent to 8080 port of the container:
|
||||
|
||||
$ --liveness-probe=timeoutSeconds=10,httpGet.port=8080
|
||||
|
||||
To remove existing probe:
|
||||
|
||||
$ --liveness-probe=""
|
||||
|
||||
--memory=MEMORY
|
||||
Set a memory limit. Ex: 1024Mi, 4Gi.
|
||||
|
||||
|
|
@ -246,6 +273,31 @@ FLAGS
|
|||
Removes the volume mounted at the specified path from the current
|
||||
container.
|
||||
|
||||
--startup-probe=[KEY=VALUE,...]
|
||||
Comma separated settings for startup probe in the form KEY=VALUE.
|
||||
Each key stands for a field of the probe described in
|
||||
https://cloud.google.com/run/docs/reference/rest/v1/Container#Probe.
|
||||
Currently supported keys are:
|
||||
|
||||
+ initialDelaySeconds: integer
|
||||
+ timeoutSeconds: integer
|
||||
+ periodSeconds: integer
|
||||
+ failureThreshold: integer
|
||||
+ httpGet.port: integer
|
||||
+ httpGet.path: string
|
||||
+ grpc.port: integer
|
||||
+ grpc.service: string
|
||||
+ tcpSocket.port: integer
|
||||
|
||||
For example, to set a probe with 10s timeout and HTTP probe
|
||||
requests sent to 8080 port of the container:
|
||||
|
||||
$ --startup-probe=timeoutSeconds=10,httpGet.port=8080
|
||||
|
||||
To remove existing probe:
|
||||
|
||||
$ --startup-probe=""
|
||||
|
||||
--[no-]use-http2
|
||||
Whether to use HTTP/2 for connections to the service. Use
|
||||
--use-http2 to enable and --no-use-http2 to disable.
|
||||
|
|
@ -377,6 +429,16 @@ FLAGS
|
|||
traffic split changes. Use "default" to unset the limit and use the
|
||||
platform default.
|
||||
|
||||
--max-unavailable=MAX_UNAVAILABLE
|
||||
A maximum percentage of instances that may be unavailable during
|
||||
traffic split changes. Use "default" to unset the limit and use the
|
||||
platform default.
|
||||
|
||||
--mesh=MESH
|
||||
Enables Cloud Service Mesh using the specified mesh resource name.
|
||||
Mesh resource name must be in the format of
|
||||
projects/PROJECT/locations/global/meshes/MESH_NAME.
|
||||
|
||||
--remove-containers=[CONTAINER,...]
|
||||
List of containers to remove.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue