mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
gcloud: Wed Apr 26 10:24:37 UTC 2023
This commit is contained in:
parent
b33a8a3e6e
commit
2ae1bc2b12
276 changed files with 6093 additions and 833 deletions
|
|
@ -94,12 +94,12 @@ SYNOPSIS
|
|||
[--ephemeral-storage-local-ssd=[count=COUNT]
|
||||
| --local-nvme-ssd-block=[count=COUNT]
|
||||
| --local-ssd-count=LOCAL_SSD_COUNT]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--maintenance-window=START_TIME | --maintenance-window-end=TIME_STAMP
|
||||
--maintenance-window-recurrence=RRULE
|
||||
--maintenance-window-start=TIME_STAMP]
|
||||
[--password=PASSWORD --enable-basic-auth
|
||||
| --username=USERNAME, -u USERNAME]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--reservation=RESERVATION --reservation-affinity=RESERVATION_AFFINITY]
|
||||
[--scopes=[SCOPE,...];
|
||||
default="gke-default" --service-account=SERVICE_ACCOUNT]
|
||||
|
|
@ -733,11 +733,12 @@ FLAGS
|
|||
--node-locations=ZONE,[ZONE,...]
|
||||
The set of zones in which the specified node footprint should be
|
||||
replicated. All zones must be in the same region as the cluster's
|
||||
master(s), specified by the --zone or --region flag. Additionally, for
|
||||
zonal clusters, --node-locations must contain the cluster's primary
|
||||
zone. If not specified, all nodes will be in the cluster's primary zone
|
||||
(for zonal clusters) or spread across three randomly chosen zones
|
||||
within the cluster's region (for regional clusters).
|
||||
master(s), specified by the -location, --zone, or --region flag.
|
||||
Additionally, for zonal clusters, --node-locations must contain the
|
||||
cluster's primary zone. If not specified, all nodes will be in the
|
||||
cluster's primary zone (for zonal clusters) or spread across three
|
||||
randomly chosen zones within the cluster's region (for regional
|
||||
clusters).
|
||||
|
||||
Note that NUM_NODES nodes will be created in each zone, such that if
|
||||
you specify --num-nodes=4 and choose two locations, 8 nodes will be
|
||||
|
|
@ -746,7 +747,7 @@ FLAGS
|
|||
Multiple locations can be specified, separated by commas. For example:
|
||||
|
||||
$ gcloud container clusters create example-cluster \
|
||||
--zone us-central1-a \
|
||||
--location us-central1-a \
|
||||
--node-locations us-central1-a,us-central1-b
|
||||
|
||||
--node-taints=[NODE_TAINT,...]
|
||||
|
|
@ -1501,6 +1502,19 @@ FLAGS
|
|||
zone. See https://cloud.google.com/compute/docs/disks/local-ssd for
|
||||
more information.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
--zone=ZONE, -z ZONE
|
||||
Compute zone (e.g. us-central1-a) for the cluster. Overrides the
|
||||
default compute/zone property value for this command invocation.
|
||||
|
||||
One of either maintenance-window or the group of maintenance-window flags
|
||||
can be set.
|
||||
|
||||
|
|
@ -1594,15 +1608,6 @@ FLAGS
|
|||
to specify a password; if not, the server will randomly generate
|
||||
one.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
--zone=ZONE, -z ZONE
|
||||
Compute zone (e.g. us-central1-a) for the cluster. Overrides the
|
||||
default compute/zone property value for this command invocation.
|
||||
|
||||
Specifies the reservation for the default initial node pool.
|
||||
|
||||
--reservation=RESERVATION
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ SYNOPSIS
|
|||
--master-authorized-networks=NETWORK,[NETWORK,...]]
|
||||
[--enable-private-endpoint
|
||||
--enable-private-nodes --master-ipv4-cidr=MASTER_IPV4_CIDR]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--scopes=[SCOPE,...];
|
||||
default="gke-default" --service-account=SERVICE_ACCOUNT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
|
@ -277,6 +277,10 @@ FLAGS
|
|||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud container clusters delete NAME [NAME ...] [--async]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
When you delete a cluster, the following resources are deleted:
|
||||
|
|
@ -39,6 +40,10 @@ FLAGS
|
|||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud container clusters describe NAME
|
||||
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describe an existing cluster for running containers.
|
||||
|
|
@ -21,6 +22,10 @@ POSITIONAL ARGUMENTS
|
|||
FLAGS
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ NAME
|
|||
|
||||
SYNOPSIS
|
||||
gcloud container clusters get-credentials NAME [--internal-ip]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
gcloud container clusters get-credentials updates a kubeconfig file with
|
||||
|
|
@ -37,7 +38,7 @@ EXAMPLES
|
|||
To switch to working on your cluster 'sample-cluster', run:
|
||||
|
||||
$ gcloud container clusters get-credentials sample-cluster \
|
||||
--zone=us-central1-f
|
||||
--location=us-central1-f
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
|
|
@ -50,6 +51,10 @@ FLAGS
|
|||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ NAME
|
|||
clusters
|
||||
|
||||
SYNOPSIS
|
||||
gcloud container clusters COMMAND [--region=REGION | --zone=ZONE, -z ZONE]
|
||||
gcloud container clusters COMMAND
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
|
|
@ -16,6 +17,10 @@ DESCRIPTION
|
|||
FLAGS
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,15 +3,16 @@ NAME
|
|||
containers
|
||||
|
||||
SYNOPSIS
|
||||
gcloud container clusters list [--region=REGION | --zone=ZONE, -z ZONE]
|
||||
gcloud container clusters list
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List existing clusters for running containers.
|
||||
|
||||
This command queries cluster across all locations unless either '--region'
|
||||
or '--zone' are specified.
|
||||
This command queries cluster across all locations unless either
|
||||
'--location', '--region', or '--zone' are specified.
|
||||
|
||||
EXAMPLES
|
||||
To list existing clusters in all locations, run:
|
||||
|
|
@ -21,6 +22,10 @@ EXAMPLES
|
|||
FLAGS
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud container clusters resize NAME
|
||||
(--num-nodes=NUM_NODES | --size=NUM_NODES) [--async]
|
||||
[--node-pool=NODE_POOL] [--region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--node-pool=NODE_POOL]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
|
|
@ -65,6 +66,10 @@ OPTIONAL FLAGS
|
|||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
|
|
@ -71,10 +71,11 @@ SYNOPSIS
|
|||
[--cloud-run-config=[load-balancer-type=EXTERNAL,...]]
|
||||
[--master-authorized-networks=NETWORK,[NETWORK,...]]
|
||||
[--node-pool=NODE_POOL]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[--location-policy=LOCATION_POLICY --max-nodes=MAX_NODES
|
||||
--min-nodes=MIN_NODES
|
||||
--total-max-nodes=TOTAL_MAX_NODES --total-min-nodes=TOTAL_MIN_NODES]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Update cluster settings for an existing container cluster.
|
||||
|
|
@ -339,11 +340,12 @@ REQUIRED FLAGS
|
|||
--node-locations=ZONE,[ZONE,...]
|
||||
The set of zones in which the specified node footprint should be
|
||||
replicated. All zones must be in the same region as the cluster's
|
||||
master(s), specified by the --zone or --region flag. Additionally,
|
||||
for zonal clusters, --node-locations must contain the cluster's
|
||||
primary zone. If not specified, all nodes will be in the cluster's
|
||||
primary zone (for zonal clusters) or spread across three randomly
|
||||
chosen zones within the cluster's region (for regional clusters).
|
||||
master(s), specified by the -location, --zone, or --region flag.
|
||||
Additionally, for zonal clusters, --node-locations must contain the
|
||||
cluster's primary zone. If not specified, all nodes will be in the
|
||||
cluster's primary zone (for zonal clusters) or spread across three
|
||||
randomly chosen zones within the cluster's region (for regional
|
||||
clusters).
|
||||
|
||||
Note that NUM_NODES nodes will be created in each zone, such that if
|
||||
you specify --num-nodes=4 and choose two locations, 8 nodes will be
|
||||
|
|
@ -353,7 +355,7 @@ REQUIRED FLAGS
|
|||
example:
|
||||
|
||||
$ gcloud container clusters update example-cluster \
|
||||
--zone us-central1-a \
|
||||
--location us-central1-a \
|
||||
--node-locations us-central1-a,us-central1-b
|
||||
|
||||
--notification-config=[pubsub=ENABLED|DISABLED,pubsub-topic=TOPIC,...]
|
||||
|
|
@ -1054,6 +1056,19 @@ OPTIONAL FLAGS
|
|||
--node-pool=NODE_POOL
|
||||
Node pool to be updated.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
--zone=ZONE, -z ZONE
|
||||
Compute zone (e.g. us-central1-a) for the cluster. Overrides the
|
||||
default compute/zone property value for this command invocation.
|
||||
|
||||
Cluster autoscaling
|
||||
|
||||
--location-policy=LOCATION_POLICY
|
||||
|
|
@ -1095,15 +1110,6 @@ OPTIONAL FLAGS
|
|||
--node-pool (or default node pool if unspecified) can scale. Ignored
|
||||
unless --enable-autoscaling is also specified.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
--zone=ZONE, -z ZONE
|
||||
Compute zone (e.g. us-central1-a) for the cluster. Overrides the
|
||||
default compute/zone property value for this command invocation.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ SYNOPSIS
|
|||
gcloud container clusters upgrade NAME [--async]
|
||||
[--cluster-version=CLUSTER_VERSION] [--image-type=IMAGE_TYPE]
|
||||
[--master] [--node-pool=NODE_POOL]
|
||||
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
[--location=LOCATION | --region=REGION | --zone=ZONE, -z ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Upgrades the Kubernetes version of an existing container cluster.
|
||||
|
|
@ -91,6 +92,10 @@ FLAGS
|
|||
|
||||
At most one of these can be specified:
|
||||
|
||||
--location=LOCATION
|
||||
Compute zone or region (e.g. us-central1-a or us-central1) for the
|
||||
cluster.
|
||||
|
||||
--region=REGION
|
||||
Compute region (e.g. us-central1) for the cluster.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue