Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Managed Service for Kubernetes
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Connecting to a node over SSH
    • Creating a configuration file
    • Configuring a Kubernetes cluster network
      • Granting access to an app running in a Kubernetes cluster
      • Using Kubernetes cluster network policies
    • Encrypting secrets
    • Using persistent volumes
      • Dynamically preparing volumes
      • Statically preparing volumes
      • Managing storage classes
      • Expanding a volume
      • Mounting a volume in Block mode
    • Managing a Kubernetes cluster
      • Adding Kubernetes cluster credentials to the kubectl configuration file
      • Getting information about a Kubernetes cluster
      • Creating a Kubernetes cluster
      • Editing a Kubernetes cluster
      • Deleting a Kubernetes cluster
    • Managing a node group
      • Getting information about a node group
      • Creating a node group
      • Editing a node group
      • Deleting a node group
  • Solutions
    • Integration with Container Registry
    • Running workloads with GPUs
    • Making backups to Object Storage
  • Concepts
    • Relationship between service resources
    • Release channels and updates
    • Using Kubernetes API objects
      • Volume
      • Service
    • Node group
      • Autoscaling node groups
      • Evicting pods from a node
      • Dynamic resource allocation for a node
      • Node groups with GPUs
    • Kubernetes cluster network policies
    • Quotas and limits
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • ClusterService
      • NodeGroupService
      • VersionService
      • OperationService
    • REST
      • Overview
      • Cluster
        • Overview
        • create
        • delete
        • get
        • list
        • listNodeGroups
        • listNodes
        • listOperations
        • start
        • stop
        • update
      • NodeGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listNodes
        • listOperations
        • update
      • Version
        • Overview
        • list
  • Questions and answers
  1. Step-by-step instructions
  2. Managing a node group
  3. Editing a node group

Changing a node group

  • Changing the name of a node group
  • Managing node group labels
    • Adding a label
    • Updating a label
    • Deleting a label

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.
Management console
CLI
API

To change a node group:

  1. Open Managed Service for Kubernetes in the folder where you want to change the Kubernetes cluster.
  2. Click on the name of the Kubernetes cluster you.
  3. Go to the Node group tab.
  4. Click Edit in the upper-right corner.
  5. Change the necessary parameters in the window that opens.
  6. 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.

To change the parameters of a node group, use the method update method for the NodeGroup resource.

Managing node group labels

You can perform the following actions with node group labels:

  • Add a label
  • Update a label
  • Delete a label

Adding a label

CLI

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

CLI

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

CLI

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
...
In this article:
  • Changing the name of a node group
  • Managing node group labels
  • Adding a label
  • Updating a label
  • Deleting a label
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC