gcloud container hub create [--async] [--display-name=DISPLAY_NAME] [--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] [GCLOUD_WIDE_FLAG …]
example-foo-bar-1 with display name
my-fleet, run:
gcloud container hub create --display-name=my-fleet --project=example-foo-bar-1--async--display-name=DISPLAY_NAME--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 hub create --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 hub create --security-posture=standardSECURITY_POSTURE must be one of: disabled,
standard, enterprise.
--workload-vulnerability-scanning=WORKLOAD_VULNERABILITY_SCANNINGgcloud container hub create --workload-vulnerability-scanning=standardWORKLOAD_VULNERABILITY_SCANNING must be one of:
disabled, standard, enterprise.
--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 hub creategcloud beta container hub create
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.