Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Solutions
  • 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
    • All solutions
    • Integration with Container Registry
    • Running workloads with GPUs
    • Installing the NGINX Ingress Controller with Let's Encrypt®
    • 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. Deleting a node group

Deleting a node group

    To delete a node group, use its name or ID.

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

    To delete a node group:

    1. Go to the Kubernetes cluster you want to delete a node group from:
      1. Open the Managed Service for Kubernetes section in the folder.
      2. Open the Kubernetes cluster.
    2. In the Node group tab, click the icon in the row of the node group to be deleted.
    3. In the menu that opens, click Delete.
    4. In the window that opens, click Delete.

    If you don't have the Yandex.Cloud command line interface yet, install and initialize it.

    1. Delete the node group:

      $ yc k8s node-group delete test-nodegroup
      ....................done
      
    2. Make sure that the node group was deleted:

      $ yc managed-kubernetes node-group list
      +----+------------+------+-------------------+------------+--------+------+
      | ID | CLUSTER ID | NAME | INSTANCE GROUP ID | CREATED AT | STATUS | SIZE |
      +----+------------+------+-------------------+------------+--------+------+
      +----+------------+------+-------------------+------------+--------+------+
      

    To delete a node group, use the delete method for the NodeGroup resource.

    Language / Region
    Careers
    Privacy policy
    Terms of use
    Brandbook
    © 2021 Yandex.Cloud LLC