Skip to main content
Create a node group in a Managed Kubernetes cluster
Last update:

Create a node group in a Managed Kubernetes cluster

A group of worker nodes can be added when creating a cluster or to an existing cluster.

In a cluster, you can create a node group with Managed Kubernetes configuration. If Managed Kubernetes configurations are not suitable, you can create a node group with a fixed cloud server configuration (flavor) via the Managed Kubernetes API or Terraform. More details about configurations in the Managed Kubernetes node configurations instructions.

If the available configurations don't suit you, for example you need more vCPU or RAM, create a ticket — we will find configurations with a different number of resources.

All created nodes are displayed in control panel under Cloud PlatformServers.

Create a node group with Managed Kubernetes configuration

  1. In Control Panel, go to Cloud PlatformKubernetes.

  2. Open the cluster page → Cluster Composition tab.

  3. Click Add Node Group.

  4. Select the pool segment where all worker nodes in the group will be located.

  5. Press Select Configuration.

  6. Select the configuration of the worker nodes in the group:

  7. If you chose an arbitrary configuration, specify the number of vCPUs, RAM, select boot local or network disk and specify the disk size.

  8. If you chose a fixed configuration with GPUs, select a ready-made node configuration with GPUs, boot network disk, and specify the disk size.

  9. Click Save.

  10. Specify the number of working nodes in the group.

  11. Optional: add node group labels — they help to distinguish working nodes of one group from working nodes of another group when working through kubectl. Specify the key and value of the label. Press Add.

  12. Optional: add node group taints — these are tags that indicate where pods should not be placed. Specify the key and tint value, and select the effect:

    • NoSchedule — new pods will not be added and existing pods will continue to run;
    • PreferNoSchedule — new pods will be added if there are no other available slots in the cluster;
    • NoExecute — running pods without tolerations will be removed.

    Press Add.

  13. Optional: add user data script — user parameters to configure Managed Kubernetes cluster in cloud-config format or bash script.

  14. Click Add Node Group.

View a list of configurations

You can see all ready-made cloud server flavors and flavors created on demand.

  1. Open OpenStack CLI.

  2. Check out the list of available flavors:

    openstack flavor list

    A list of flavors will appear in the reply:

    +------------+---------------------+--------+------+-----------+-------+-----------+
    | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
    +------------+---------------------+--------+------+-----------+-------+-----------+
    | 1 | m1.tiny | 512 | 0 | 0 | 0 | 1 | True |
    | 2 | m1.small | 2048 | 0 | 0 | 0 | 0 | 1 | True |
    | 3 | m1.medium | 4096 | 0 | 0 | 0 | 2 | True |
    | 1011 | SL1.1-1024 | 1024 | 0 | 0 | 0 | 1 | True |
    | 1012 | SL1.1-2048 | 2048 | 0 | 0 | 0 | 1 | True |
    | 2011 | CPU1.4-8192 | 8192 | 0 | 0 | 0 | 4 | True |
    | 2012 | CPU1.8-16384 | 16384 | 0 | 0 | 0 | 8 | True |
    | 4011 | RAM1.2-16384 | 16384 | 0 | 0 | 0 | 2 | True |
    | 4012 | RAM1.4-32768 | 32768 | 0 | 0 | 4 | True |
    | 8311 | HFL1.1-2048-30 | 2048 | 30 | 0 | 0 | 1 | True |
    | 8312 | HFL1.1-4096-80 | 4096 | 80 | 0 | 0 | 1 | True |
    | 3021 | GL2.8-24576-0-1GPU | 24576 | 0 | 0 | 8 | True |
    | 3022 | GL2.14-49152-0-2GPU | 49152 | 0 | 0 | 0 | 0 | 14 | True | True |
    | 9011 | PRC10.1-512 | 512 | 0 | 0 | 0 | 1 | True |
    | 9021 | PRC20.1-512 | 512 | 0 | 0 | 1 | True |
    | 9051 | PRC50.1-512 | 512 | 512 | 0 | 0 | 0 | 1 | True |
    | 9587d840-b | myflavor | 1024 | 0 | 0 | 0 | 1 | False |
    | fe0-4fce-a | | | | | | | | | | | | |
    | f3f-69b7de | | | | | | | | | | | | | | |
    | b8d623 | | | | | | | | | | | | | |
    +------------+---------------------+--------+------+-----------+-------+-----------+-------+-----------+-----------+

    Here:

    • ID is the ID of the flavor;

    • Name is the name of the flavor of the view:

      • m1.XX — OpenStack base flavors similar to arbitrary configurations;
      • SL1.XX — fixed configurations of the Standard Line;
      • CPU1.XX — CPU Line;
      • RAM1.XX — Memory Line;
      • GL2.XX — GPU Line;
      • PRC10.XX — Shared Line with a core share of 10%;
      • PRC20.XX — Shared Line with a core share of 20%;
      • PRC50.XX — Shared Line with a core share of 50%;
      • HFL1.XX — HighFreq Line;
      • SGX1.XX — SGX Line;
    • RAM — size of RAM in MB;

    • Disk — the size of the local disk in GB;

    • VCPUs — the number of vCPUs;

    • Is Public — the scope of the flavor:

      • True — public ready flavors;
      • False — private flavors.

Create a node group with a fixed cloud server configuration

  1. View configuration-list.
  2. Copy the value from the ID column.
  3. Use the Managed Kubernetes API methods to create a cluster with a node group with the desired configuration or add a node group to an existing cluster. In the query for the flavor_id parameter, specify the value of the fixed configuration ID that you copied in step 2.