gcloud alpha container attached clusters update

NAME
gcloud alpha container attached clusters update - update an Attached cluster
SYNOPSIS
gcloud alpha container attached clusters update(CLUSTER :--location=LOCATION)[--annotations=ANNOTATION,[ANNOTATION,…]][--async][--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODE][--clear-description][--description=DESCRIPTION][--logging=COMPONENT,[COMPONENT,…]][--platform-version=PLATFORM_VERSION][--validate-only][--admin-groups=[GROUP,…]    |--clear-admin-groups][--admin-users=[USER,…]    |--clear-admin-users][--disable-cloud-monitoring    |--enable-cloud-monitoring][--disable-managed-prometheus    |--enable-managed-prometheus][--proxy-secret-name=PROXY_SECRET_NAME--proxy-secret-namespace=PROXY_SECRET_NAMESPACE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Update an Attached cluster.
EXAMPLES
To update a cluster namedmy-clustermanaged in locationus-west1, run:
gcloudalphacontainerattachedclustersupdatemy-cluster--location=us-west1--description=testcluster
POSITIONAL ARGUMENTS
Cluster resource - cluster to update. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentcluster on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

CLUSTER
ID of the cluster or fully qualified identifier for the cluster.

To set thecluster attribute:

  • provide the argumentcluster on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
Google Cloud location for the cluster.

To set thelocation attribute:

  • provide the argumentcluster on the command line with a fullyspecified name;
  • provide the argument--location on the command line;
  • set the propertycontainer_attached/location.
FLAGS
--annotations=ANNOTATION,[ANNOTATION,…]
Annotations for the cluster.
--async
Return immediately, without waiting for the operation in progress to complete.
--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODE
Set Binary Authorization evaluation mode for this cluster.BINAUTHZ_EVALUATION_MODE must be one of:DISABLED,PROJECT_SINGLETON_POLICY_ENFORCE.
--clear-description
Clear the description for the cluster.
--description=DESCRIPTION
Description for the cluster.
--logging=COMPONENT,[COMPONENT,…]
Set the components that have logging enabled.

Examples:

gcloudalphacontainerattachedclustersupdate--logging=SYSTEMgcloudalphacontainerattachedclustersupdate--logging=SYSTEM,WORKLOADgcloudalphacontainerattachedclustersupdate--logging=NONE

COMPONENT must be one of:NONE,SYSTEM,WORKLOAD.

--platform-version=PLATFORM_VERSION
Platform version to use for the cluster.

To retrieve a list of valid versions, run:

gcloudalphacontainerattachedget-server-config--location=LOCATION

ReplaceLOCATION with the target GoogleCloud location for the cluster.

--validate-only
Validate the update of the cluster, but don't actually perform it.
Admin groups

At most one of these can be specified:

--admin-groups=[GROUP,…]
Groups of users that can perform operations as a cluster administrator.
--clear-admin-groups
Clear the admin groups associated with the cluster
Admin users

At most one of these can be specified:

--admin-users=[USER,…]
Users that can perform operations as a cluster administrator.
--clear-admin-users
Clear the admin users associated with the cluster
Cloud Monitoring Config

At most one of these can be specified:

--disable-cloud-monitoring
Disable managed collection for Cloud Monitoring.
--enable-cloud-monitoring
Enable managed collection for Cloud Monitoring.
Monitoring Config

At most one of these can be specified:

--disable-managed-prometheus
Disable managed collection for Managed Service for Prometheus.
--enable-managed-prometheus
Enable managed collection for Managed Service for Prometheus.
Proxy config
--proxy-secret-name=PROXY_SECRET_NAME
Name of the Kubernetes secret that contains the HTTP/HTTPS proxy configuration.

This flag argument must be specified if any of the other arguments in this groupare specified.

--proxy-secret-namespace=PROXY_SECRET_NAMESPACE
Namespace of the Kubernetes secret that contains the HTTP/HTTPS proxyconfiguration.

This flag argument must be specified if any of the other arguments in this groupare specified.

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 alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudcontainerattachedclustersupdate

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.