1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 07:29:40 +00:00

gcloud: Wed Jun 29 09:00:05 UTC 2022

This commit is contained in:
Automated 2022-06-29 09:00:05 +00:00
parent 8b80260bd9
commit cf5ab60e4a
Failed to extract signature
195 changed files with 4700 additions and 413 deletions

View file

@ -14,17 +14,21 @@ SYNOPSIS
| --enable-autoprovisioning
--enable-autoscaling --max-nodes=MAX_NODES --min-nodes=MIN_NODES
| --enable-autorepair --enable-autoupgrade
| --max-surge-upgrade=MAX_SURGE_UPGRADE
--max-unavailable-upgrade=MAX_UNAVAILABLE_UPGRADE)
[--cluster=CLUSTER] [--region=REGION | --zone=ZONE, -z ZONE]
[GCLOUD_WIDE_FLAG ...]
| --enable-blue-green-upgrade --enable-surge-upgrade
--max-surge-upgrade=MAX_SURGE_UPGRADE
--max-unavailable-upgrade=MAX_UNAVAILABLE_UPGRADE
--node-pool-soak-duration=NODE_POOL_SOAK_DURATION
--standard-rollout-policy=[batch-node-count=BATCH_NODE_COUNT,
batch-percent=BATCH_NODE_PERCENTAGE,
batch-soak-duration=BATCH_SOAK_DURATION,...]) [--cluster=CLUSTER]
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud container node-pools update updates a node pool in a Google
Kubernetes Engine cluster.
EXAMPLES
To turn on node auto repair in "node-pool-1" in the cluster
To turn on node autoupgrade in "node-pool-1" in the cluster
"sample-cluster", run:
$ gcloud container node-pools update node-pool-1 \
@ -236,6 +240,12 @@ REQUIRED FLAGS
Upgrade settings
--enable-blue-green-upgrade
Changes node pool upgrade strategy to blue-green upgrade.
--enable-surge-upgrade
Changes node pool upgrade strategy to surge upgrade.
--max-surge-upgrade=MAX_SURGE_UPGRADE
Number of extra (surge) nodes to be created on each upgrade of the
node pool.
@ -268,6 +278,30 @@ REQUIRED FLAGS
Must be used in conjunction with '--max-surge-upgrade'.
--node-pool-soak-duration=NODE_POOL_SOAK_DURATION
Time in seconds to be spent waiting during blue-green upgrade
before deleting the blue pool and completing the upgrade.
$ gcloud container node-pools update node-pool-1 \
--cluster=example-cluster --node-pool-soak-duration=600s
--standard-rollout-policy=[batch-node-count=BATCH_NODE_COUNT,batch-percent=BATCH_NODE_PERCENTAGE,batch-soak-duration=BATCH_SOAK_DURATION,...]
Standard rollout policy options for blue-green upgrade.
Batch sizes are specfied by one of, batch-node-count or
batch-percent. The duration between batches is specified by
batch-soak-duration.
$ gcloud container node-pools update node-pool-1 \
--cluster=example-cluster \
--standard-rollout-policy=batch-node-count=3,\
batch-soak-duration=60s
$ gcloud container node-pools update node-pool-1 \
--cluster=example-cluster \
--standard-rollout-policy=batch-percent=0.3,\
batch-soak-duration=60s
OPTIONAL FLAGS
--cluster=CLUSTER
The name of the cluster. Overrides the default container/cluster