# Creating Clusters

n this section, you will learn how to create different on-premises Kubernetes cluster setups using the Platform9 Managed Kubernetes SaaS management plane or CLI options. Follow the articles below to learn how to create a single master, multi-master multi node cluster, an On-Prem cluster, Linux VM (virtual machine), or VMware OVA virtual machine.

### Creating a Cluster <a href="#creating-a-cluster" id="creating-a-cluster"></a>

#### BareOS Single Master <a href="#bareos-single-master" id="bareos-single-master"></a>

The steps to create a BareOS single master are as follows.

**Step 1** – Login to the UI and navigate to the `Infrastructure > Clusters` tab and click on `+ Add Cluster`.

**Step 2** – In the cluster creation wizard, choose the “Single-Master Cluster” option. Next, give your cluster a name and select the Kubernetes version you'd like to deploy.

**Step 3** – Next, on the master node, download and configure the [PMK CLI](https://docs.platform9.com/managed-kubernetes/pmk-cli).

{% tabs %}
{% tab title="Bash" %}

```bash
bash <(curl -sL https://pmkft-assets.s3-us-west-1.amazonaws.com/pf9ctl_setup)
pf9ctl config set
pf9ctl prep-node
```

{% endtab %}
{% endtabs %}

Once this step completes successfully, your cluster is ready to use!

#### BareOS Multi-master <a href="#bareos-multi-master" id="bareos-multi-master"></a>

The steps to [create a multi-master](https://docs.platform9.com/managed-kubernetes/clusters/on-premise-bare-os/create-multi-master-cluster) BareOS is as follows.

**Step 1** – Login to the UI and navigate to the `Infrastructure > Clusters` tab and click on `Add Cluster`.

**Step 2** – In the cluster creation wizard, select the “Multi-Master Cluster” option. Next, give your cluster a name and select the Kubernetes version you'd like to deploy.

**Step 3** – Next, on the master node, download and configure the [PMK CLI](https://platform9.com/docs/kubernetes/pmk-cli-overview) onto each node.

{% tabs %}
{% tab title="Bash" %}

```bash
bash <(curl -sL https://pmkft-assets.s3-us-west-1.amazonaws.com/pf9ctl_setup)
pf9ctl config set
pf9ctl prep-node
```

{% endtab %}
{% endtabs %}

**Step 4** – After the process completes, these nodes will show under the `Nodes` tab in the PMK UI. Now, select at least 3 nodes as masters and then select the worker nodes. Finally, click the `Complete` button to deploy the cluster.

#### Using the CLI – Bootstrap <a href="#using-the-cli--bootstrap" id="using-the-cli--bootstrap"></a>

Running the following bootstrap command with the CLI creates a single node cluster and utilizes the current node as the master. A further requirement of the command is the cluster name.

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl bootstrap [flags] <cluster-name>
```

{% endtab %}
{% endtabs %}
