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:
- Open Managed Service for Kubernetes in the folder you want to delete the Kubernetes cluster from.
- Click the icon in the row of the Kubernetes cluster to be deleted.
- In the menu that opens, click Delete.
- In the window that opens, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
-
Delete the Kubernetes cluster:
$ yc managed-kubernetes cluster delete test-k8s-cluster .....................done
-
Make sure that the Kubernetes cluster was deleted:
$ yc managed-kubernetes cluster list +----+------+------------+--------+--------+-------------------+-------------------+ | ID | NAME | CREATED AT | HEALTH | STATUS | EXTERNAL ENDPOINT | INTERNAL ENDPOINT | +----+------+------------+--------+--------+-------------------+-------------------+ +----+------+------------+--------+--------+-------------------+-------------------+