gcloud container fleet update [--async] [--display-name=DISPLAY_NAME] [--update-labels=[KEY=VALUE,…]] [--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODE --binauthz-policy-bindings=[name=BINAUTHZ_POLICY] --security-posture=SECURITY_POSTURE --workload-vulnerability-scanning=WORKLOAD_VULNERABILITY_SCANNING] [--clear-labels | --remove-labels=[KEY,…]] [GCLOUD_WIDE_FLAG …]
example-foo-bar-1 to updated-name, run:
gcloud container fleet update --display-name=updated-name --project=example-foo-bar-1--async--display-name=DISPLAY_NAME--update-labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
Default cluster configurations to apply across the fleet.
Binary Authorization config.
--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODEgcloud container fleet update --binauthz-evaluation-mode=policy-bindingsBINAUTHZ_EVALUATION_MODE must be one of:
disabled, policy-bindings.
--binauthz-policy-bindings=[name=BINAUTHZ_POLICY]projects/{project_number}/platforms/gke/policies/{policy_id}.
--security-posture=SECURITY_POSTUREgcloud container fleet update --security-posture=standardSECURITY_POSTURE must be one of: disabled,
standard, enterprise.
--workload-vulnerability-scanning=WORKLOAD_VULNERABILITY_SCANNINGgcloud container fleet update --workload-vulnerability-scanning=standardWORKLOAD_VULNERABILITY_SCANNING must be one of:
disabled, standard, enterprise.
--clear-labels--update-labels is also specified then
--clear-labels is applied first.
For example, to remove all labels:
gcloud container fleet update --clear-labels
To remove all existing labels and create two new labels,
and
foo:
baz
gcloud container fleet update --clear-labels --update-labels foo=bar,baz=qux--remove-labels=[KEY,…]--update-labels is also specified then
--update-labels is applied first.
--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 fleet updategcloud beta container fleet 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.