gcloud container attached clusters update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud container attached clusters update - update an Attached cluster
- SYNOPSIS
gcloud 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
- Update an Attached cluster.
- EXAMPLES
- To update a cluster named
managed in locationmy-cluster, run:us-west1gcloudcontainerattachedclustersupdatemy-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 the
projectattribute:- provide the argument
clusteron the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
CLUSTER- ID of the cluster or fully qualified identifier for the cluster.
To set the
clusterattribute:- provide the argument
clusteron the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- Google Cloud location for the cluster.
To set the
locationattribute:- provide the argument
clusteron the command line with a fullyspecified name; - provide the argument
--locationon the command line; - set the property
container_attached/location.
- provide the argument
- provide the argument
- 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.
- 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_MODEmust 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:
gcloudcontainerattachedclustersupdate--logging=SYSTEMgcloudcontainerattachedclustersupdate--logging=SYSTEM,WORKLOADgcloudcontainerattachedclustersupdate--logging=NONECOMPONENTmust 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=LOCATIONReplace
with the target GoogleCloud location for the cluster.LOCATION --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 helpfor details. - NOTES
- This variant is also available:
gcloudalphacontainerattachedclustersupdate
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.