1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 15:39:42 +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

@ -0,0 +1,55 @@
NAME
gcloud beta container node-pools complete-upgrade - complete a node pool
upgrade
SYNOPSIS
gcloud beta container node-pools complete-upgrade NAME [--cluster=CLUSTER]
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Complete a node pool upgrade.
Complete upgrade is a method used to skip the remaining node pool soaking
phase during blue-green node pool upgrades.
EXAMPLES
To complete an active upgrade in node-pool-1 in the cluster sample-cluster,
run:
$ gcloud beta container node-pools complete-upgrade node-pool-1 \
--cluster=sample-cluster
POSITIONAL ARGUMENTS
NAME
Name of the node pool for which the upgrade is to be completed.
FLAGS
--cluster=CLUSTER
Cluster to which the node pool belongs. Overrides the default
container/cluster property value for this command invocation.
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,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud container node-pools complete-upgrade
$ gcloud alpha container node-pools complete-upgrade

View file

@ -9,8 +9,9 @@ SYNOPSIS
[--disable-pod-cidr-overprovision] [--disk-size=DISK_SIZE]
[--disk-type=DISK_TYPE] [--enable-autoprovisioning]
[--enable-autorepair] [--no-enable-autoupgrade]
[--enable-confidential-nodes] [--enable-gvnic]
[--enable-image-streaming] [--image-type=IMAGE_TYPE]
[--enable-blue-green-upgrade] [--enable-confidential-nodes]
[--enable-gvnic] [--enable-image-streaming] [--enable-surge-upgrade]
[--image-type=IMAGE_TYPE]
[--machine-type=MACHINE_TYPE, -m MACHINE_TYPE]
[--max-pods-per-node=MAX_PODS_PER_NODE]
[--max-surge-upgrade=MAX_SURGE_UPGRADE; default=1]
@ -20,11 +21,15 @@ SYNOPSIS
[--min-cpu-platform=PLATFORM]
[--network-performance-configs=[PROPERTY=VALUE,...]]
[--node-group=NODE_GROUP] [--node-labels=[NODE_LABEL,...]]
[--node-locations=ZONE,[ZONE,...]] [--node-taints=[NODE_TAINT,...]]
[--node-version=NODE_VERSION] [--num-nodes=NUM_NODES; default=3]
[--placement-type=PLACEMENT_TYPE] [--preemptible]
[--sandbox=[type=TYPE]] [--shielded-integrity-monitoring]
[--shielded-secure-boot] [--spot]
[--node-locations=ZONE,[ZONE,...]]
[--node-pool-soak-duration=NODE_POOL_SOAK_DURATION]
[--node-taints=[NODE_TAINT,...]] [--node-version=NODE_VERSION]
[--num-nodes=NUM_NODES; default=3] [--placement-type=PLACEMENT_TYPE]
[--preemptible] [--sandbox=[type=TYPE]]
[--shielded-integrity-monitoring] [--shielded-secure-boot] [--spot]
[--standard-rollout-policy=[batch-node-count=BATCH_NODE_COUNT,
batch-percent=BATCH_NODE_PERCENTAGE,
batch-soak-duration=BATCH_SOAK_DURATION,...]]
[--system-config-from-file=SYSTEM_CONFIG_FROM_FILE]
[--tags=TAG,[TAG,...]] [--threads-per-core=THREADS_PER_CORE]
[--workload-metadata=WORKLOAD_METADATA]
@ -132,6 +137,9 @@ FLAGS
Enabled by default, use --no-enable-autoupgrade to disable.
--enable-blue-green-upgrade
Changes node pool upgrade strategy to blue-green upgrade.
--enable-confidential-nodes
Enable confidential nodes for the node pool. Enabling Confidential
Nodes will create nodes using Confidential VM
@ -144,6 +152,9 @@ FLAGS
--enable-image-streaming
Specifies whether to enable image streaming on node pool.
--enable-surge-upgrade
Changes node pool upgrade strategy to surge upgrade.
--image-type=IMAGE_TYPE
The image type to use for the node pool. Defaults to server-specified.
@ -324,6 +335,13 @@ FLAGS
--cluster=sample-cluster \
--node-locations=us-central1-a,us-central1-b
--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 beta container node-pools create example-cluster \
--node-pool-soak-duration=600s
--node-taints=[NODE_TAINT,...]
Applies the given kubernetes taints on all nodes in the new node pool,
which can be used with tolerations for pod scheduling.
@ -403,6 +421,20 @@ FLAGS
New nodes, including ones created by resize or recreate, will use spot
VM instances.
--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 beta container node-pools create example-cluster \
--standard-rollout-policy=batch-node-count=3,\
batch-soak-duration=60s
$ gcloud beta container node-pools create example-cluster \
--standard-rollout-policy=batch-percent=0.3,\
batch-soak-duration=60s
--system-config-from-file=SYSTEM_CONFIG_FROM_FILE
Path of the YAML/JSON file that contains the node configuration,
including Linux kernel parameters (sysctls) and kubelet configs.

View file

@ -28,6 +28,9 @@ GCLOUD WIDE FLAGS
COMMANDS
COMMAND is one of the following:
complete-upgrade
(BETA) Complete a node pool upgrade.
create
(BETA) Create a node pool in a running cluster.

View file

@ -3,8 +3,8 @@ NAME
SYNOPSIS
gcloud beta container node-pools rollback NAME [--async]
[--cluster=CLUSTER] [--region=REGION | --zone=ZONE, -z ZONE]
[GCLOUD_WIDE_FLAG ...]
[--cluster=CLUSTER] [--respect-pdb=RESPECT_PDB]
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Rollback a node-pool upgrade.
@ -32,6 +32,10 @@ FLAGS
The cluster from which to rollback the node pool. Overrides the default
container/cluster property value for this command invocation.
--respect-pdb=RESPECT_PDB
Indicates whether node pool rollbacks should respect pod disruption
budgets.
At most one of these can be specified:
--region=REGION

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
(BETA) gcloud beta 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 beta container node-pools update node-pool-1 \
@ -254,6 +258,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.
@ -286,6 +296,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 beta 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 beta container node-pools update node-pool-1 \
--cluster=example-cluster \
--standard-rollout-policy=batch-node-count=3,\
batch-soak-duration=60s
$ gcloud beta 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