1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-10 03:16:46 +00:00
gcloud-help/gcloud/container/aws/node-pools/update

265 lines
9.6 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud container aws node-pools update - update a node pool in an Anthos
cluster on AWS
SYNOPSIS
gcloud container aws node-pools update
(NODE_POOL : --cluster=CLUSTER --location=LOCATION) [--async]
2022-03-23 08:27:29 +00:00
[--config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN]
2023-09-07 10:42:28 +00:00
[--enable-autorepair] [--iam-instance-profile=IAM_INSTANCE_PROFILE]
2023-12-06 10:10:36 +00:00
[--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]
2022-03-23 08:27:29 +00:00
[--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN]
[--root-volume-size=ROOT_VOLUME_SIZE]
2023-06-15 10:31:27 +00:00
[--root-volume-throughput=ROOT_VOLUME_THROUGHPUT]
2022-03-23 08:27:29 +00:00
[--root-volume-type=ROOT_VOLUME_TYPE] [--validate-only]
2022-09-14 09:28:28 +00:00
[--annotations=ANNOTATION,[ANNOTATION,...] | --clear-annotations]
2023-01-19 00:56:33 +00:00
[--clear-autoscaling-metrics
| --autoscaling-metrics=[AUTOSCALING_METRIC,...]
--autoscaling-metrics-granularity=AUTOSCALING_METRICS_GRANULARITY]
2023-08-23 10:30:46 +00:00
[--clear-node-labels | --node-labels=NODE_LABEL,[NODE_LABEL,...]]
2022-04-20 08:58:18 +00:00
[--clear-proxy-config | --proxy-secret-arn=PROXY_SECRET_ARN
--proxy-secret-version-id=PROXY_SECRET_VERSION_ID]
2022-03-23 08:27:29 +00:00
[--clear-security-group-ids
| --security-group-ids=[SECURITY_GROUP_ID,...]]
2022-05-11 08:44:01 +00:00
[--clear-ssh-ec2-key-pair | --ssh-ec2-key-pair=SSH_EC2_KEY_PAIR]
2023-01-19 00:56:33 +00:00
[--clear-tags | --tags=TAG,[TAG,...]]
2022-03-01 04:29:52 +00:00
[--max-nodes=MAX_NODES --min-nodes=MIN_NODES] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Update a node pool in an Anthos cluster on AWS.
EXAMPLES
To update a node pool named 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
POSITIONAL ARGUMENTS
Node pool resource - node pool to update. The arguments in this group can
be used to specify the attributes of this resource. (NOTE) Some attributes
2023-05-04 10:43:54 +00:00
are not given arguments in this group but can be set in other ways.
To set the project attribute:
2022-03-01 04:29:52 +00:00
◆ provide the argument node_pool on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
NODE_POOL
ID of the node_pool or fully qualified identifier for the node_pool.
2023-05-04 10:43:54 +00:00
2022-03-01 04:29:52 +00:00
To set the node_pool attribute:
▸ provide the argument node_pool on the command line.
2022-08-10 08:48:58 +00:00
This positional argument must be specified if any of the other
arguments in this group are specified.
2022-03-01 04:29:52 +00:00
--cluster=CLUSTER
2023-05-04 10:43:54 +00:00
cluster of the node_pool.
To set the cluster attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument node_pool on the command line with a fully
specified name;
▸ provide the argument --cluster on the command line.
--location=LOCATION
2023-05-04 10:43:54 +00:00
Google Cloud location for the node_pool.
To set the location attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument node_pool on the command line with a fully
specified name;
▸ provide the argument --location on the command line;
2022-08-31 09:34:57 +00:00
▸ set the property container_aws/location.
2022-03-01 04:29:52 +00:00
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
2022-03-23 08:27:29 +00:00
--config-encryption-kms-key-arn=CONFIG_ENCRYPTION_KMS_KEY_ARN
Amazon Resource Name (ARN) of the AWS KMS key to encrypt the user data.
2023-09-07 10:42:28 +00:00
--enable-autorepair
Enable node autorepair feature for a node pool. Use
--no-enable-autorepair to disable.
$ gcloud container aws node-pools update --enable-autorepair
2022-06-29 09:00:05 +00:00
--iam-instance-profile=IAM_INSTANCE_PROFILE
Name or ARN of the IAM instance profile associated with the node pool.
2023-09-13 10:32:10 +00:00
--instance-type=INSTANCE_TYPE
AWS EC2 instance type for the node pool's nodes.
2023-12-06 10:10:36 +00:00
--max-surge-update=MAX_SURGE_UPDATE
Maximum number of extra (surge) nodes to be created beyond the current
size of the node pool during its update process. Use
--max-unavailable-update as well, if needed, to control the overall
surge settings.
To 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_UPDATE
Maximum number of nodes that can be simultaneously unavailable during
this node pool's update process. Use --max-surge-update as well, if
needed, to control the overall surge settings.
To 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
2022-03-01 04:29:52 +00:00
--node-version=NODE_VERSION
Kubernetes version to use for the node pool.
2022-03-23 08:27:29 +00:00
--root-volume-iops=ROOT_VOLUME_IOPS
Number of I/O operations per second (IOPS) to provision for the root
volume.
--root-volume-kms-key-arn=ROOT_VOLUME_KMS_KEY_ARN
Amazon Resource Name (ARN) of the AWS KMS key to encrypt the root
volume.
--root-volume-size=ROOT_VOLUME_SIZE
Size of the root volume. The value must be a whole number followed by a
size unit of GB for gigabyte, or TB for terabyte. If no size unit is
specified, GB is assumed.
2023-06-15 10:31:27 +00:00
--root-volume-throughput=ROOT_VOLUME_THROUGHPUT
Throughput to provision for the root volume, in MiB/s. Only valid if
2023-11-01 10:29:29 +00:00
the volume type is GP3. If volume type is GP3 and throughput is not
provided, it defaults to 125.
2023-06-15 10:31:27 +00:00
2022-03-23 08:27:29 +00:00
--root-volume-type=ROOT_VOLUME_TYPE
Type of the root volume. ROOT_VOLUME_TYPE must be one of: gp2, gp3.
2022-03-16 08:47:18 +00:00
2022-03-01 04:29:52 +00:00
--validate-only
Validate the node pool to update, but don't actually perform it.
2022-09-14 09:28:28 +00:00
Annotations
At most one of these can be specified:
--annotations=ANNOTATION,[ANNOTATION,...]
Annotations for the node pool.
--clear-annotations
Clear the annotations for the node pool.
2023-01-19 00:56:33 +00:00
Node pool autoscaling metrics collection
At most one of these can be specified:
--clear-autoscaling-metrics
Clear the cloudwatch autoscaling metrics collection associated with
the nodepool.
Update existing cloudwatch autoscaling metrics collection parameters
--autoscaling-metrics=[AUTOSCALING_METRIC,...]
Autoscaling metrics to enable. For a list of valid metrics, refer
to
https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
If granularity is specified but not any metrics, all metrics are
enabled.
--autoscaling-metrics-granularity=AUTOSCALING_METRICS_GRANULARITY
Frequency at which EC2 Auto Scaling sends aggregated data to AWS
CloudWatch. The only valid value is "1Minute".
2023-08-23 10:30:46 +00:00
Node labels
At most one of these can be specified:
--clear-node-labels
Clear the labels assigned to the node pool's nodes.
--node-labels=NODE_LABEL,[NODE_LABEL,...]
Labels assigned to the node pool's nodes.
2022-04-20 08:58:18 +00:00
Proxy config
At most one of these can be specified:
--clear-proxy-config
2022-06-02 08:41:25 +00:00
Clear the proxy configuration associated with the node pool.
2022-04-20 08:58:18 +00:00
Update existing proxy config parameters
--proxy-secret-arn=PROXY_SECRET_ARN
ARN of the AWS Secrets Manager secret that contains a proxy
configuration.
--proxy-secret-version-id=PROXY_SECRET_VERSION_ID
Version ID string of the AWS Secrets Manager secret that contains a
proxy configuration.
2022-03-23 08:27:29 +00:00
Security groups
At most one of these can be specified:
--clear-security-group-ids
2022-06-02 08:41:25 +00:00
Clear any additional security groups associated with the node pool's
nodes. This does not remove the default security groups.
2022-03-23 08:27:29 +00:00
--security-group-ids=[SECURITY_GROUP_ID,...]
2022-06-02 08:41:25 +00:00
IDs of additional security groups to add to the node pool's nodes.
2022-03-23 08:27:29 +00:00
2022-05-11 08:44:01 +00:00
SSH config
At most one of these can be specified:
--clear-ssh-ec2-key-pair
2022-06-02 08:41:25 +00:00
Clear the EC2 key pair authorized to login to the node pool's nodes.
2022-05-11 08:44:01 +00:00
--ssh-ec2-key-pair=SSH_EC2_KEY_PAIR
2022-06-02 08:41:25 +00:00
Name of the EC2 key pair authorized to login to the node pool's
nodes.
2022-05-11 08:44:01 +00:00
2023-01-19 00:56:33 +00:00
Tags
At most one of these can be specified:
--clear-tags
Clear any tags associated with the node pool's nodes.
--tags=TAG,[TAG,...]
Applies the given tags (comma separated) on the node pool. Example:
$ gcloud container aws node-pools update EXAMPLE_NODE_POOL \
--tags=tag1=one,tag2=two
2022-03-01 04:29:52 +00:00
Node pool autoscaling
--max-nodes=MAX_NODES
Maximum number of nodes in the node pool.
--min-nodes=MIN_NODES
Minimum number of nodes in the node pool.
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 variant is also available:
$ gcloud alpha container aws node-pools update