> [!CAUTION]
> **Caution:** Be sure to plan your installation ahead of time. Your clusters' configurations, as declared in the Google Distributed Cloud configuration file, become immutable after you create the clusters. You can't change most aspects of your clusters after they are created, including networking and authentication. The only configurable exceptions are:
>
> - [Resizing user clusters](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/resizing-a-user-cluster.md.txt#resize)
> - [Creating additional user clusters](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/creating-additional-user-clusters.md.txt#modify_usercluster)
> - [Upgrading clusters](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/upgrading.md.txt#modify_config)
> - [Creating and managing node pools](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/managing-node-pools.md.txt)

This page explains how to create additional user clusters. To create additional
user clusters, you make a copy of the Google Distributed Cloud
[configuration file](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/configuration-file-overview.md.txt) used to deploy your clusters. You modify the copied file to
meet your expectations for the new user clusters, and then you use the file to
create the cluster.

You need to copy and modify a Google Distributed Cloud configuration file for each
additional user cluster you want to create.

## Before you begin

- Be sure that an admin cluster is running. You created an admin cluster when you [installed Google Distributed Cloud](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/cloud-sdk.md.txt).
- Locate the `config.yaml` file that was generated by `gkectl` during installation. This file defines specifications for the admin cluster and user clusters. You'll copy and modify this file to create an additional user clusters.
- Locate the admin cluster's `kubeconfig` file. You reference this file when you copy and modify `config.yaml`.

### Limitations

> [!NOTE]
> **Note:** For current known issues, refer to the \[Release notes\](/anthos/clusters/docs/on-prem/1.6/release-notes).

| Limitation | Description |
|---|---|
| **Maximum and minimum limits for clusters and nodes** | See [Quotas and limits](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/quotas.md.txt). Your environment's performance might impact these limits. |
| **Uniqueness for user cluster names** | All user clusters registered to the same Google Cloud project must have unique names. |
| **Cannot deploy to more than one vCenter and/or vSphere datacenter** | Currently, you can only deploy an admin cluster and a set of associated user clusters to a single vCenter and/or vSphere datacenter. You cannot deploy the same admin and user clusters to more than one vCenter and/or vSphere datacenter. |
| **Cannot declaratively change cluster configurations after creation** | While you can [create additional clusters](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/creating-additional-user-clusters.md.txt) and [resize existing clusters](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/resizing-a-user-cluster.md.txt), you cannot change an existing cluster through its configuration file. |

### Verify that enough IP addresses are available

Be sure that you have enough IP addresses allocated for the new user cluster.
Verifying that you have enough IP addresses depends on whether you're using a
DHCP server or static IPs.

In addition, be sure that you have enough IP addresses allocated for your admin
cluster. The admin cluster has one or three control-plane nodes for each user
cluster, and the admin cluster will need one or three additional control-plane
nodes for the user cluster you want to create. There must be enough IP addresses
available for all of those control-plane nodes.

To upgrade your admin cluster to have more IP addresses, see [Upgrading--verify that enough IP addresses are available](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/upgrading.md.txt#verify_ips).

### DHCP

Check that the DHCP server in the network in which the cluster will be created
has enough IP addresses. There should be more IP addresses than there will be
nodes running in the user cluster.

### Static IPs

Check that you've allocated enough IP addresses on your load balancer, and
be sure to specify these IP addresses during cluster creation.

## Copy configuration file

Copy the Google Distributed Cloud configuration file that you [generated](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/user-cluster-quickstart.md.txt#user_cluster_configuration_file) using
`gkectl create-config` and [modified](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/user-cluster-quickstart.md.txt#fill_in_your_user_cluster_configuration_file) to be appropriate for your environment.
Rename the copy to use another filename:

```
cp [CONFIG_FILE] [NEW_USER_CLUSTER_CONFIG]
```

where <var translate="no">\[NEW_USER_CLUSTER_CONFIG\]</var> is the name you choose for the copy
of the configuration file. For the purpose of these instructions, we'll call
this file `create-user-cluster.yaml`.

In `create-user-cluster.yaml`, you need to change the following fields:

- `admincluster`, the specification for the admin cluster. You completely remove the `admincluster` specification from the file.
- `usercluster`, the specification for a user cluster.

In the following sections, you modify the `admincluster` and `usercluster`
fields of `create-user-cluster.yaml`, then use the file to create additional
user clusters.

## Delete the `admincluster` specification

If you want to create additonal user clusters from the existing admin cluster,
you need to delete the entire `admincluster` specification.

To do so, simply delete the specification and all of its subfields.

Be sure not to delete the `usercluster` specification, nor any of its subfields.

## Modify the `usercluster` specification

Make changes to the `usercluster` fields as described in the following sections.

### Change the user cluster's name

Change the user cluster name from the `usercluster.clustername` field. New user
clusters should have names different from existing user clusters.

### Reserve IP addresses for the user cluster's nodes

If you're using DHCP, make sure that you have enough IPs for the nodes to be
created.

For static IP, you should modify the file provided to
`usercluster.ipblockfilepath` that contains the predefined IP addresses for the
user cluster, or provide a different static IP YAML file with the IPs you want.

### Reserve IP addresses for the load balancer

If you're using F5 BIG-IP load balancer, be sure to reserve two IP addresses for
the user cluster's load balancer control plane and ingress. The corresponding
fields are `usercluster.vips.controlplanevip` and `usercluster.vips.ingressvip`.

### Change the machine requirements (optional)

If you need this user cluster's control plane or worker nodes to use a different amount
of CPU or memory, or if you need the cluster to run additional or fewer nodes,
set values for the following fields:

#### `usercluster.masternode`

- `usercluster.masternode.cpus`: Number of CPU cores to use.
- `usercluster.masternode.memorymb`: Number of MB of memory to use
- `usercluster.masternode.replicas`: Number of nodes of this type to run. Value must be `1` or `3`.

#### `usercluster.workernode`

- `usercluster.workernode.cpus`: Number of CPU cores to use.
- `usercluster.workernode.memorymd`: Number of MB of memory to use.
- `usercluster.workernode.replicas`: Number of nodes of this type to run.

### Update the `vcenter` specification

If you want to change certain aspects of your vSphere environment for your new
cluster, you can modify any of the following fields under `vcenter`:

- `credentials.username`
- `credentials.password`
- `datastore`
- `network`
- `resourcepool`

Do not modify the following fields:

- `credentials.address`
- `datacenter`
- `cluster`

## Create the user cluster

Now that you've populated a `create-user-cluster.yaml` file, you're ready to use
that file to create an additional user cluster.

Run the following command:

```
gkectl create cluster --config create-user-cluster.yaml --kubeconfig [ADMIN_CLUSTER_KUBECONFIG]
```

where:

- <var translate="no">create-user-cluster.yaml</var> is the configuration file you just created. You might have chosen a different name for this file.
- <var translate="no">\[ADMIN_CLUSTER_KUBECONFIG\]</var> points to the existing admin cluster's `kubeconfig`.

## Troubleshooting

See
[Troubleshoooting cluster creation and upgrade](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/troubleshoot-cluster-creation-upgrade.md.txt).