gcloud container bare-metal admin-clusters create (ADMIN_CLUSTER : --location=LOCATION) --version=VERSION (--control-plane-load-balancer-port=CONTROL_PLANE_LOAD_BALANCER_PORT --control-plane-vip=CONTROL_PLANE_VIP : --enable-manual-lb) ((((--control-plane-node-configs=[labels=LABELS],[node-ip=NODE-IP] : --control-plane-node-labels=[KEY=VALUE,…] --control-plane-node-taints=[KEY=VALUE:EFFECT,…]))) : --api-server-args=[KEY=VALUE,…]) (--island-mode-pod-address-cidr-blocks=POD_ADDRESS,[POD_ADDRESS,…] --island-mode-service-address-cidr-blocks=SERVICE_ADDRESS,[…]) ((--lvp-node-mounts-config-path=LVP_NODE_MOUNTS_CONFIG_PATH --lvp-node-mounts-config-storage-class=LVP_NODE_MOUNTS_CONFIG_STORAGE_CLASS) ((--lvp-share-path=LVP_SHARE_PATH --lvp-share-storage-class=LVP_SHARE_STORAGE_CLASS) : --shared-path-pv-count=SHARED_PATH_PV_COUNT)) [--admin-users=ADMIN_USERS] [--annotations=[KEY=VALUE,…]] [--async] [--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODE] [--description=DESCRIPTION] [--enable-application-logs] [--login-user=LOGIN_USER] [--maintenance-address-cidr-blocks=[MAINTENANCE_ADDRESS_CIDR_BLOCKS,…]] [--max-pods-per-node=MAX_PODS_PER_NODE] [--validate-only] [--uri=URI : --no-proxy=[NO_PROXY,…]] [GCLOUD_WIDE_FLAG …]
my-cluster
managed in location us-west1, run:
gcloud container bare-metal admin-clusters create my-cluster --location=us-west1
To set the project attribute:
admin_cluster on the command line with a fully
specified name;
--project on the command line;
core/project.
ADMIN_CLUSTER
To set the admin_cluster attribute:
admin_cluster on the command line.
--location=LOCATIONlocation attribute:
admin_cluster on the command line with a fully
specified name;
--location on the command line;
container_bare_metal/location.
--version=VERSION--control-plane-load-balancer-port=CONTROL_PLANE_LOAD_BALANCER_PORT--control-plane-vip=CONTROL_PLANE_VIP--enable-manual-lb--api-server-args=[KEY=VALUE,…]--control-plane-node-configs=[labels=LABELS],[node-ip=NODE-IP]--control-plane-node-labels=[KEY=VALUE,…]--control-plane-node-taints=[KEY=VALUE:EFFECT,…]--island-mode-pod-address-cidr-blocks=POD_ADDRESS,[POD_ADDRESS,…]--island-mode-service-address-cidr-blocks=SERVICE_ADDRESS,[…]--lvp-node-mounts-config-path=LVP_NODE_MOUNTS_CONFIG_PATH--lvp-node-mounts-config-storage-class=LVP_NODE_MOUNTS_CONFIG_STORAGE_CLASS--shared-path-pv-count=SHARED_PATH_PV_COUNT--lvp-share-path=LVP_SHARE_PATH--lvp-share-storage-class=LVP_SHARE_STORAGE_CLASS--admin-users=ADMIN_USERS--annotations=[KEY=VALUE,…]--async--binauthz-evaluation-mode=BINAUTHZ_EVALUATION_MODEBINAUTHZ_EVALUATION_MODE must be one of:
DISABLED, PROJECT_SINGLETON_POLICY_ENFORCE.
--description=DESCRIPTION--enable-application-logs--login-user=LOGIN_USER--maintenance-address-cidr-blocks=[MAINTENANCE_ADDRESS_CIDR_BLOCKS,…]--max-pods-per-node=MAX_PODS_PER_NODE--validate-only--uri=URI--no-proxy=[NO_PROXY,…]--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 bare-metal admin-clusters creategcloud beta container bare-metal admin-clusters 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.