Changing a node group
To access a node group, use its name or unique ID obtained using the command:
ncp managed-kubernetes node-group list
Result:
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
| ID | CLUSTER ID | NAME | INSTANCE GROUP ID | CREATED AT | STATUS | SIZE |
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
| catt3knapbq5o0n134o1 | cati493bu7ian006a5j7 | k8s-demo-ng | cl1tbm76ms7pv6siti7l | 2019-11-20 12:01:02 | RUNNING | 2 |
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
Changing node group parameters
You can change the following parameters of a node group:
-
Name.
-
Description.
-
Number of nodes.
-
Computing resources and node disk size.
-
Node name template.
-
Update policy.
Alert
Do not update the parameters of VMs that belong to a Managed Service for Kubernetes cluster using the Compute Cloud interfaces. This will disrupt the operation of the node group and the entire cluster.
To change a node group:
- Open Managed Service for Kubernetes in the folder where you want to change the Kubernetes cluster.
- Click the name of the cluster you need.
- Go to the Node group tab.
- Click Edit in the upper-right corner.
- Change the required parameters in the window that opens.
- Click Save changes.
Get detailed information about the command to edit the node group:
ncp managed-kubernetes node-group update --help
Use the following parameters to edit the node group:
-
--new-name
: Change the name. -
--description
: Edit the description. -
--service-account-id
,--service-account-name
: Edit the service account resource. -
--node-service-account-id
,--node-service-account-name
: Edit the node service account. -
--version
: Change the Kubernetes version. -
--network-interface
: Network settings:subnets
: Names of subnets that will host the nodes.ipv4-address
: Method of assigning an IPv4 address.ipv6-address
: Method of assigning an IPv6 address.
ipv4-address
andipv6-address
determine the method of assigning an IP address:auto
: Only the internal IP address is assigned to the node.nat
: Public and internal IP addresses are assigned to the node.
-
--container-runtime
: Change the container runtime environment,docker
orcontainerd
. -
--node-name
: Update the node name template. The name is unique if the template contains at least one of the variables:{instance_group.id}
: Node group internal ID.{instance.index}
: Unique instance number in the node group. Possible values: 1 to N, where N is the number of nodes in the group.{instance.index_in_zone}
: Instance number in a zone. It's unique for a specific node group within the zone.{instance.short_id}
: Instance ID that is unique within the group. Consists of four letters.{instance.zone_id}
: Zone ID.
For example,
prod-{instance.short_id}-{instance_group.id}
. If not specified, the default value is used:{instance_group.id}-{instance.short_id}
. -
--latest-revision
: Get all available updates for the current version of the master. -
Managing the maintenance window:
--anytime-maintenance-window
: Perform maintenance at any time.--daily-maintenance-window
: Update daily at the selected time.--weekly-maintenance-window
: Update on selected days.
Warning
- The
user-data
metadata key is not supported for VM post-configuration or user data transmission. - To manage SSH keys, use the
ssh-keys
key. - For post-configuring nodes, use privileged DaemonSets. For example, sysctl-tuner
.
Enabling access to nodes from the internet
- Go to the folder page and select Compute Cloud.
- Click the name of the desired VM.
- Under Network, click
- Specify the appropriate settings and click Add.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To enable access to nodes from the internet:
-
Get detailed information about the command to edit the node group:
ncp managed-kubernetes node-group update --help
-
Run the command to change a node group by passing the
--network-interface
parameter:ncp managed-kubernetes node-group update <node group ID or name> \ ... --network-interface subnets=<name of node group subnet>, ipv4-address=nat
You can find out the names and IDs of node groups in the list of node groups in the folder.