# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-kubernetes/clusters/basic-cluster-operations/creating-clusters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
