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 Kubernetes cluster
  3. Deleting a Kubernetes cluster

Deleting clusters Kubernetes

    To access a Kubernetes cluster, use its name or unique ID. You can get them by using the following command:

    $ yc managed-kubernetes cluster list
    +----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
    |          ID          |   NAME   |     CREATED AT      | HEALTH  | STATUS  |    EXTERNAL ENDPOINT    |   INTERNAL ENDPOINT   |
    +----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
    | cati493bu7ian006a5j7 | k8s-demo | 2019-11-20 11:26:36 | HEALTHY | RUNNING | https://84.201.174.147/ | https://192.168.0.27/ |
    +----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
    
    Management console
    CLI
    API

    To delete a Kubernetes cluster:

    1. Open Managed Service for Kubernetes in the folder you want to delete the Kubernetes cluster from.
    2. Click the icon in the row of the Kubernetes cluster 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 Kubernetes cluster:

      $ yc managed-kubernetes cluster delete test-k8s-cluster
      .....................done
      
    2. Make sure that the Kubernetes cluster was deleted:

      $ yc managed-kubernetes cluster list
      +----+------+------------+--------+--------+-------------------+-------------------+
      | ID | NAME | CREATED AT | HEALTH | STATUS | EXTERNAL ENDPOINT | INTERNAL ENDPOINT |
      +----+------+------------+--------+--------+-------------------+-------------------+
      +----+------+------------+--------+--------+-------------------+-------------------+
      

    To delete a Kubernetes cluster, use the delete method for the Cluster resource.

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