Changing a node group
To access a node group, use its name or unique ID obtained using the command:
$ yc managed-kubernetes node-group list
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
| 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 the name of a node group
You can change the following node group parameters:
- Name.
- Description.
- Number of nodes.
- Kubernetes version.
- Computing resources and node disk size.
- Update policy.
To change a node group:
- Open Managed Service for Kubernetes in the folder where you want to change the Kubernetes cluster.
- Click on the name of the Kubernetes cluster you.
- Go to the Node group tab.
- Click Edit in the upper-right corner.
- Change the necessary parameters in the window that opens.
- Click Save changes.
Get detailed information about the command to edit the node group:
$ yc managed-kubernetes node-group update --help
Use the following parameters to edit the node group:
--new-name
: Change the name.--description
: Change the description.--service-account-id
,--service-account-name
: Change the service account for the resources.--node-service-account-id
,--node-service-account-name
: Change the service account for the nodes.--version
: Change the Kubernetes version.--latest-revision
: Get all available updates for the current version of the master.--auto-upgrade
: Manage automatic updates.- Managing the maintenance window:
--anytime-maintenance-window
: Run the maintenance at any time.--daily-maintenance-window
: Perform maintenance daily at the selected time.--weekly-maintenance-window
: Perform maintenance on the selected days.
Managing node group labels
You can perform the following actions with node group labels:
Adding a label
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
Add a label to a node group:
$ yc managed-kubernetes node-group add-labels my-node-group --labels new_label=test_label
done (28s)
id: catpl8c44kiibp20u4f3
cluster_id: catcsqidoos7tq0513us
created_at: "2020-01-22T10:34:43Z"
name: my-node-group
labels:
new_label: test_label
status: RUNNING
...
Updating a label
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
Change a node group label:
Warning
The existing set of labels
is completely replaced by the set transmitted.
$ yc managed-kubernetes node-group update my-node-group --labels test_label=my_ng_label
done (3s)
id: catpl8c44kiibp20u4f3
cluster_id: catcsqidoos7tq0513us
created_at: "2020-01-22T10:34:43Z"
name: my-node-group
labels:
test_label: my_ng_label
status: RUNNING
...
Deleting a label
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
Delete a label from a node group:
$ yc managed-kubernetes node-group remove-labels my-node-group --labels test_label
done (2s)
id: catpl8c44kiibp20u4f3
cluster_id: catcsqidoos7tq0513us
created_at: "2020-01-22T10:34:43Z"
name: my-node-group
status: RUNNING
...