# Creating a Cluster

If you have connected your cloud, you can create a new project.

1\) Manager/Partner has to create [a new project](https://itera.gitbook.io/taikun/user-guide-1/manager/projects/creating-a-new-project) and [assign](https://itera.gitbook.io/taikun/user-guide-1/manager/projects#assigned-users) it to a user.

![Add project and assign it to user](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MlAaVkNCfJ-vCE0TlGX%2F-MlAcJUoMI7XSmiskdGK%2Fadd%20proj.gif?alt=media\&token=8050ba7d-d35d-4ec1-9aa1-ab0a28c493ca)

{% hint style="danger" %}
Keep in mind you have to add profiles during project creation otherwise you cannot do it later.
{% endhint %}

2\) Manager/Partner [binds flavors](https://itera.gitbook.io/taikun/user-guide-1/manager/flavor-info#bind-to-project) needed to the new project.

a) during project creation

![Flavor - project creation](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZqizrBYnEkMCMltRd0%2F-MZqlDf8Xdaue1_z8iYH%2Fadd%20flavor%20proj%20creation.gif?alt=media\&token=1fedc37c-8027-4b9b-8528-285ae1d7f4ff)

b) in Flavor Info

![Flavor - Flavor Info](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZqizrBYnEkMCMltRd0%2F-MZqlKrYYfQPQfLXdb3v%2Fadd%20flavor%20flavor%20info.gif?alt=media\&token=72ed24d3-2760-444c-aa6a-cc76b8fe8d85)

{% hint style="warning" %}
For a well-functioning cluster you should **NOT** use small flavors.
{% endhint %}

3\) Now User/Manager/Partner can create new servers in the project. Keep in mind, that a working cluster consists at least of 1 Bastion, 1 Kubemaster and 1 Kubeworker. However, you can also create a multimaster by creating more than 1 Kubemaster, the number of masters must be odd. If you want to create a multimaster, you have to do it before commit.

{% hint style="info" %}
Recommendation for sizing:

* *bastion* recommended 2 vCPU + 2GB of RAM

* *masters* recommended 4 vCPU + 8GB of RAM
  {% endhint %}

* add servers (more info for [User](https://itera.gitbook.io/taikun/user-guide-1/user/projects/project-details), [Manager](https://itera.gitbook.io/taikun/user-guide-1/manager/projects/project-details) and [Partner](https://itera.gitbook.io/taikun/user-guide-1/partner/projects/project-details))

![Add servers](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZRj5XhkLAGrjJz1pZs%2F-MZS9I2AgcAhCAY9FKay%2Fadd%20server.gif?alt=media\&token=bdd4690c-5cf1-45cc-8ca4-e66c508de4bf)

* use shortcuts:
  * b - bastion
  * m - master
  * w - worker
  * numbers of master/worker for faster server addition&#x20;

{% hint style="info" %}
The bigger flavor you choose the longer it will take to create.
{% endhint %}

* commit

{% hint style="danger" %}
Control if you have all servers you need, the creation can take some time (approx. 7 min per server).

User: Also double check if you need all of them because later you won't be able to delete them.
{% endhint %}

![Commit](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZqizrBYnEkMCMltRd0%2F-MZqm0GoFEwvYRrtaAeB%2Fcommit.gif?alt=media\&token=e882e9bc-4cf6-4195-aa40-52e303d5a899)

* creating the project, servers get through the stages:
  * <img src="https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MOefG77EOGrctPMe8nc%2F-MOf6-0_9SS435qUoROM%2Fpending.png?alt=media&#x26;token=3801c4f3-aa5b-49a6-a6b9-6becdddfabdf" alt="" data-size="original">-><img src="https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MOefG77EOGrctPMe8nc%2F-MOf62I2ejruOYk7bxQF%2Fupdating.png?alt=media&#x26;token=e5be6e34-03a5-475a-b5cf-46a778d57a03" alt="" data-size="original">-><img src="https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MOefG77EOGrctPMe8nc%2F-MOfARzTYU4e4iw3S6Kk%2FReady.png?alt=media&#x26;token=59ea6b91-ae6e-414d-8348-37096566be3a" alt="" data-size="original">

&#x20;

* successful creation, the project is *Ready*

![Ready](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZqizrBYnEkMCMltRd0%2F-MZqmHeE9ZGigYiQgL5V%2Fready.png?alt=media\&token=ef408c6d-3acc-4329-87b3-b754ba4bde40)

* failed creation, the project is *Failed* or *Pending* without any action
  * if servers fail during creation, best way to restore them is with repair button (details: [User](https://itera.gitbook.io/taikun/user-guide-1/user/projects/project-details#repair), [Manager](https://itera.gitbook.io/taikun/user-guide-1/manager/projects/project-details#repair), [Partner](https://itera.gitbook.io/taikun/user-guide-1/partner/projects/project-details#repair))

* delete servers
  * Manager/Partner can delete unnecessary servers

![Delete unnecessary servers](https://2158992251-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQrhtis3vRAM281R7J%2F-MZqizrBYnEkMCMltRd0%2F-MZqsfvP3tKLbMHEHUvm%2Fdelete%20unnecessary%20servers.gif?alt=media\&token=bc3afc77-e546-415c-a7c2-10d6286df6b4)

{% hint style="info" %}
You can delete servers to still have working cluster (1 bastion, 1 master and 1 worker) or delete the whole working cluster.
{% endhint %}

4\) Control remotely.

Use [kubeconfig](https://itera.gitbook.io/taikun/guidelines/backup-monitoring-lock-reboot#kube-configs) file to connect to your kubernetes.

{% hint style="danger" %}
Please do NOT deploy any apps in monitoring **Service**, because Taikun uses the monitoring namespace heavily! And if you disable the monitoring, all pvc in monitoring will be deleted.
{% endhint %}
