How to create clusters
- Web console
- CLI
- Terraform
-
In the sidebar, go to
Compute → Kubernetes.
-
Click the
Create cluster button.
- On the page that opens, enter the cluster name.
-
(Optionally) Enter labels in the
key:valueformat. -
Review the Control plane section:
- High availability is enabled by default. As a result, the cluster is created with three etcd stores instead of one. This makes the cluster more reliable; data stored in etcd is accessible even in case of failures. If you want to have only one etcd store, disable the high availability option. However, the enabled option does not affect the cost of the cluster.
- The Kubernetes version is set by default. For supported versions, see Kubernetes® versions in Managed Service for Kubernetes.
- A public endpoint is allocated by default. As a result, the cluster is available from the internet, you can connect to it from any machine. If you want to limit access to the cluster, disable the public endpoint option. Then, you can connect to the cluster only from a virtual machine located in the same subnet with the cluster.
- Review the Network section. The network and subnet are selected by default.
- Click Create cluster.
How to modify clusters
- CLI
- Terraform
-
Get the ID of the cluster via its name:
Alternatively, you can use the listing command:
nebius mk8s cluster list. -
Update the cluster settings:
The command contains the following parameters:
-
--labels: Labels in thekey=valueformat. -
--control-plane-endpoints-public-endpoint: Enables a public endpoint. As a result, the cluster is available from the internet, one can connect to it from any machine. If you want to limit access to the cluster, set the parameter tofalse. Then, one can connect to the cluster only from a virtual machine located in the same subnet with the cluster. -
--control-plane-etcd-cluster-size: Number or etcd stores. Three of them ensure high availability of the cluster.
--fullto the command. This will update all parameters with the default values or the values specified in the--fullcommand. -