> For the complete documentation index, see [llms.txt](https://docs.platform9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform9.com/managed-kubernetes/clusters/basic-cluster-operations/creating-clusters.md).

# 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](/managed-kubernetes/pmk-cli/cli-overview.md).

{% 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](/managed-kubernetes/clusters/on-premise-bare-os/create-multi-master-cluster.md) 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
