Create a Managed Kubernetes cluster on a dedicated server
You can create a Managed Kubernetes cluster with a node group on a dedicated server.
Dedicated servers are used when you need:
- consistently high performance;
- an increased level of privacy;
- reserved resources.
In Managed Kubernetes, you can use prebuilt configuration dedicated servers with a local port.
A dedicated server is already assembled, mounted, and joined to a private L3 network with the Kubernetes Control Plane using a Global Router.
You can create no more than 10 high-availability clusters and 10 basic Managed Kubernetes clusters on dedicated servers within a single project and a single pool.
When selecting clusters on dedicated servers, consider the limitations.
1. Configure the cluster
-
In the control panel, in the top menu, click Products and select Managed Kubernetes.
-
In the Clusters section, click Create cluster.
-
Enter the cluster name. The name will be displayed in cluster object names: node groups, nodes, load balancers, networks, and volumes. For example, if the cluster name is
kelsie, the node group name will bekelsie-node-gdc8q, and the boot volume name will bekelsie-node-gdc8q-volume. -
Select a location for the master nodes. Once the cluster is created, you cannot change the location.
-
Select a Kubernetes version.
-
Optional: select a network plugin (CNI). Calico is used in the cluster by default. You cannot change the CNI after the cluster is created.
In the Cilium network plugin, by default:
- the
envoy daemonsetsetting is enabled – for more information, see the Envoy article in the Cilium documentation; - the
hubble-relaysetting is disabled – for more information, see the Hubble Relay subsection of the Hubble internals article in the Cilium documentation.
If you want to change these settings, create a cluster using the Managed Kubernetes API. Note that using the
hubble-relaysetting requires at least 4 GB of RAM on the node. - the
-
Select a cluster type. Once the cluster is created, you cannot change the cluster type.
-
Optional: to make the cluster accessible via a private network and inaccessible from the internet, select the Private kube API checkbox. By default, the cluster is created in a public network and is automatically assigned a public kube API IP address accessible from the internet. Once the cluster is created, you cannot change the kube API access type.
-
Click Continue.
2. Configure the node group
You can add only one node group when creating a cluster. You can add additional node groups to an existing cluster.
-
In the Server type field, select Dedicated server.
-
Select a location for all worker nodes in the group. Once the cluster is created, you cannot change the location.
-
Configure the worker node settings in the group:
3.1. Нажмите Выбрать конфигурацию.
3.2. Выберите тарифный план.
3.3. Select a prebuilt configuration for dedicated servers. Disks in all configurations are combined into RAID1 — all data is simultaneously written to two physical disks in the RAID array.
3.4. Нажмите Выбрать.
You cannot change the node configuration after the cluster is created.
-
Optional: change the default disk partitioning:
4.1. В поле Разметка диска нажмите Изменить.
4.2. Чтобы отказаться от раздела
/storage, снимите чекбокс /storage.4.3. Чтобы изменить размер корневого раздела
/, in строке корневого раздела измените количество гигабайт, выделяемых для этого раздела. Минимальный размер — 30 ГБ. Максимальный размер — меньше размера диска on 2 ГБ (1 ГБ для раздела/bootand 1 ГБ для раздела/storage).4.4. Нажмите Сохранить.
-
Configure the quantity of worker nodes:
5.1. Откройте вкладку Фиксированное.
5.2. Specify the number of nodes. For high-availability of system components and the Cilium network plugin, we recommend having at least two worker nodes in the cluster; nodes can be in different groups.
-
Optional: in поле CIDR подсети группы нод введите CIDR новой приватной подсети, которая будет использоваться для рабочих нод группы.
The subnet must meet the following conditions:
- принадлежит к диапазону приватных адресов
10.0.0.0/8,172.16.0.0/12or192.168.0.0/16; - has a size of
/24; - не пересекается with диапазонами
10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24and172.250.0.0/14. Эти диапазоны участвуют во внутренней адресации Managed Kubernetes.
The subnet will be created in a separate VLAN. If you do not specify a CIDR, one will be assigned automatically when the cluster is created.
- принадлежит к диапазону приватных адресов
-
Optional: add node group labels:
7.1. В поле Метки нажмите Добавить.
7.2. Enter the label key.
7.3. Enter the label value.
7.4. Нажмите Добавить.
-
Optional: add node group taints:
8.1. В поле Тейнты нажмите Добавить.
8.2. Enter the taint key.
8.3. Введите значение тейнта.
8.4. Select an effect:
- NoSchedule — new pods will not be added, and existing ones will continue to run;
- PreferNoSchedule — new pods will be added if no other free space is available in the cluster;
- NoExecute — running pods without tolerations will be evicted.
8.5. Нажмите Добавить.
-
Optional: add a script with custom parameters to configure the Managed Kubernetes cluster:
9.1. В поле User data нажмите Добавить.
9.2. Вставьте скрипт. Максимальный размер скрипта with данными, которые не закодированы in Base64, — 47 КБ. Примеры скриптов and поддерживаемые форматы можно посмотреть in инструкции User data.
-
Optional: in the Cloud network block, in the Cloud infrastructure subnet field, enter the CIDR of the new private subnet to be used for communication between master nodes and the service global router.
The subnet must meet the following conditions:
- принадлежит сети проекта, in котором вы создаете кластер. К какому проекту относится сеть можно посмотреть in панели управления: in верхнем меню нажмите Продукты → Managed Kubernetes → Сеть → вкладка Приватные сети → карточка сети. Если сеть принадлежит другому проекту, in карточке сети будет тег Кросспроектная and информация об идентификаторе проекта, in котором она была создана;
- подсеть должна быть приватной — принадлежать к диапазону
10.0.0.0/8,172.16.0.0/12or192.168.0.0/16; - the subnet size must be
/24; - подсеть не должна пересекаться with диапазонами
10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24and172.250.0.0/14. Эти диапазоны участвуют во внутренней адресации Managed Kubernetes; - the subnet must not overlap with the CIDR of the node group subnet you assigned in step 8.
If you do not specify a CIDR, it will be assigned automatically when the cluster is created.
-
Click Continue.
3. Set up automation
-
Select the cluster maintenance start time — the time when automatic cluster maintenance actions will begin.
-
Optional: to enable audit logs, select the Audit logs checkbox. After the cluster is created, configure integration with a log storage and analysis system.
-
Check the price of the cluster on a dedicated server.
-
Нажмите Создать. Создание кластера занимает до 60 минут, in это время кластер будет находиться in статусе
CREATING. Кластер будет готов к работе, когда перейдет in статусACTIVE.To connect master nodes and worker nodes on dedicated servers, a private network
<cluster_name>-network, a private subnet, a VLAN, and a global router<cluster_name>-routerwill be created automatically, where<cluster_name>is the cluster name. The CIDR of the dedicated server subnet is assigned automatically. If you did not specify a cloud infrastructure subnet CIDR when configuring node groups, it will also be assigned automatically.The default security group will be assigned to the node ports. Do not change the rules within it and do not assign a different security group. Doing so may cause cluster malfunction.