gcloud container aws node-pools update (NODE_POOL : --cluster=CLUSTER --location=LOCATION) [--async] [--config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN] [--enable-autorepair] [--iam-instance-profile=IAM_INSTANCE_PROFILE] [--instance-type=INSTANCE_TYPE] [--max-surge-update=MAX_SURGE_UPDATE] [--max-unavailable-update=MAX_UNAVAILABLE_UPDATE] [--node-version=NODE_VERSION] [--root-volume-iops=ROOT_VOLUME_IOPS] [--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN] [--root-volume-size=ROOT_VOLUME_SIZE] [--root-volume-throughput=ROOT_VOLUME_THROUGHPUT] [--root-volume-type=ROOT_VOLUME_TYPE] [--validate-only] [--annotations=ANNOTATION,[ANNOTATION,…] | --clear-annotations] [--clear-autoscaling-metrics | --autoscaling-metrics=[AUTOSCALING_METRIC,…] --autoscaling-metrics-granularity=AUTOSCALING_METRICS_GRANULARITY] [--clear-node-labels | --node-labels=NODE_LABEL,[NODE_LABEL,…]] [--clear-proxy-config | --proxy-secret-arn=PROXY_SECRET_ARN --proxy-secret-version-id=PROXY_SECRET_VERSION_ID] [--clear-security-group-ids | --security-group-ids=[SECURITY_GROUP_ID,…]] [--clear-ssh-ec2-key-pair | --ssh-ec2-key-pair=SSH_EC2_KEY_PAIR] [--clear-tags | --tags=TAG,[TAG,…]] [--max-nodes=MAX_NODES --min-nodes=MIN_NODES] [GCLOUD_WIDE_FLAG …]
(DEPRECATED) Update a node pool in an Anthos cluster on AWS.
This command is deprecated. See https://cloud.google.com/kubernetes-engine/multi-cloud/docs/aws/deprecations/deprecation-announcement
for more details.
my-node-pool in
a cluster named my-cluster managed in
location us-west1, run:
gcloud container aws node-pools update my-node-pool --cluster=my-cluster --location=us-west1 --node-version=NODE_VERSION
To set the project attribute:
node_pool on the command line with a fully
specified name;
--project on the command line;
core/project.
NODE_POOL
To set the node_pool attribute:
node_pool on the command line.
--cluster=CLUSTERcluster attribute:
node_pool on the command line with a fully
specified name;
--cluster on the command line.
--location=LOCATIONlocation attribute:
node_pool on the command line with a fully
specified name;
--location on the command line;
container_aws/location.
--async--config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN--enable-autorepairgcloud container aws node-pools update --enable-autorepair--iam-instance-profile=IAM_INSTANCE_PROFILE--instance-type=INSTANCE_TYPE--max-surge-update=MAX_SURGE_UPDATETo create an extra node each time the node pool is rolling updated, run:
gcloud container aws node-pools update --max-surge-update=1 --max-unavailable-update=0--max-unavailable-update=MAX_UNAVAILABLE_UPDATETo modify a node pool with 6 nodes such that, 3 nodes are updated in parallel (1 + 2), but keep at least 4 nodes (6 - 2) available each time this node pool is rolling updated, run:
gcloud container aws node-pools update --max-surge-update=1 --max-unavailable-update=2--node-version=NODE_VERSION--root-volume-iops=ROOT_VOLUME_IOPS--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN--root-volume-size=ROOT_VOLUME_SIZEGB for gigabyte, or TB for terabyte. If no
size unit is specified, GB is assumed.
--root-volume-throughput=ROOT_VOLUME_THROUGHPUT--root-volume-type=ROOT_VOLUME_TYPEROOT_VOLUME_TYPE must be one
of: gp2, gp3.
--validate-only--annotations=ANNOTATION,[ANNOTATION,…]--clear-annotations--clear-autoscaling-metrics--autoscaling-metrics=[AUTOSCALING_METRIC,…]--autoscaling-metrics-granularity=AUTOSCALING_METRICS_GRANULARITY--clear-node-labels--node-labels=NODE_LABEL,[NODE_LABEL,…]--clear-proxy-config--proxy-secret-arn=PROXY_SECRET_ARN--proxy-secret-version-id=PROXY_SECRET_VERSION_ID--clear-security-group-ids--security-group-ids=[SECURITY_GROUP_ID,…]--clear-ssh-ec2-key-pair--ssh-ec2-key-pair=SSH_EC2_KEY_PAIRgcloud container aws node-pools update EXAMPLE_NODE_POOL --tags=tag1=one,tag2=two--max-nodes=MAX_NODES--min-nodes=MIN_NODES--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.
gcloud alpha container aws node-pools update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.