gcloud anthos config controller create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud anthos config controller create - create Anthos Config Controller instances
- SYNOPSIS
gcloud anthos config controller create(NAME:--location=LOCATION)[--async][--cluster-ipv4-cidr-block=CLUSTER_IPV4_CIDR_BLOCK][--cluster-named-range=CLUSTER_NAMED_RANGE][--full-management][--man-block=MAN_BLOCK][--man-blocks=[BLOCK,…]][--master-ipv4-cidr-block=MASTER_IPV4_CIDR_BLOCK][--network=NETWORK][--services-ipv4-cidr-block=SERVICES_IPV4_CIDR_BLOCK][--services-named-range=SERVICES_NAMED_RANGE][--subnet=SUBNET][--use-private-endpoint][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Create an Anthos Config Controller instance.
- EXAMPLES
- To create an Anthos Config Controller instance with the name
, run:acc-defaultgcloudanthosconfigcontrollercreateacc-default--location=us-central1 - POSITIONAL ARGUMENTS
- Instance resource - The identifier for a Config Controller instance. Thearguments in this group can be used to specify the attributes of this resource.(NOTE) Some attributes are not given arguments in this group but can be set inother ways.
To set the
projectattribute:- provide the argument
nameon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
NAME- ID of the instance or fully qualified identifier for the instance.
To set the
nameattribute:- provide the argument
nameon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- The name of the Config Controller instance location. Currently, only
,us-central1,us-east1,us-east4,us-east5,us-west2,northamerica-northeast1,northamerica-northeast2,europe-north1,europe-west1,europe-west3,europe-west6,australia-southeast1,australia-southeast2,asia-northeast1andasia-northeast2are supported.asia-southeast1To set the
locationattribute:- provide the argument
nameon the command line with a fullyspecified name; - provide the argument
--locationon the command line.
- provide the argument
- provide the argument
- Instance resource - The identifier for a Config Controller instance. Thearguments in this group can be used to specify the attributes of this resource.(NOTE) Some attributes are not given arguments in this group but can be set inother ways.
- FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
--cluster-ipv4-cidr-block=CLUSTER_IPV4_CIDR_BLOCK- The IP address range for the cluster pod IPs. Can be specified as a netmask size(e.g. '/14') or as in CIDR notation (e.g. '10.100.0.0/20'). Defaults to '/20' ifflag is not provided.
--cluster-named-range=CLUSTER_NAMED_RANGE- The name of the existing secondary range in the clusters subnetwork to use forpod IP addresses. Alternatively,
--cluster_cidr_blockcan be usedto automatically create a GKE-managed one. --full-management- Enable full cluster management type.
--man-block=MAN_BLOCK- (DEPRECATED) Master Authorized Network. Allows access to the Kubernetes controlplane from this block. Defaults to
0.0.0.0/0if flag is notprovided.The --man-block option is deprecated; use --man-blocks instead.
--man-blocks=[BLOCK,…]- Master Authorized Network. Allows users to specify multiple blocks to access theKubernetescontrol plane from this block. Defaults to
0.0.0.0/0ifflag is not provided. --master-ipv4-cidr-block=MASTER_IPV4_CIDR_BLOCK- The /28 network that the control plane will use. Defaults to '172.16.0.128/28'if flag is not provided.
--network=NETWORK- Existing VPC Network to put the GKE cluster and nodes in. Defaults to 'default'if flag is not provided. If
--subnet=SUBNETis also specified,subnet must be a subnetwork of the network specified by this--network=NETWORKflag. --services-ipv4-cidr-block=SERVICES_IPV4_CIDR_BLOCK- The IP address range for the cluster service IPs. Can be specified as a netmasksize (e.g. '/14') or as in CIDR notation (e.g. '10.100.0.0/20'). Defaults to'/24' if flag is not provided.
--services-named-range=SERVICES_NAMED_RANGE- The name of the existing secondary range in the clusters subnetwork to use forservice ClusterIPs. Alternatively,
--services_cidr_blockcan beused to automatically create a GKE-managed one. --subnet=SUBNET- Specifies the subnet that the VM instances are a part of.
--network=NETWORKmust also be specified, subnet must be asubnetwork of the network specified by the--network=NETWORKflag. --use-private-endpoint- Only allow access to the master's private endpoint IP.
- 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:
gcloudalphaanthosconfigcontrollercreate
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.