Deleting an Kubernetes cluster
Alert
When deleting a Managed Service for Kubernetes cluster, Compute Cloud disks attached to PersistentVolumes
are not deleted automatically.
To access a Kubernetes cluster, use its name or unique ID. You can get them by using the following command:
ncp managed-kubernetes cluster list
Result:
+----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
| 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
- Open Managed Service for Kubernetes.
- Click
- In the resulting menu, click Delete.
- In the window that opens, click Delete.
If you don't have the Nebius AI command line interface yet, install and initialize it.
-
Delete a Kubernetes cluster:
ncp managed-kubernetes cluster delete test-k8s-cluster
Command result:
done
-
Make sure that the Kubernetes cluster was deleted:
ncp managed-kubernetes cluster list
Command result:
+----+------+------------+--------+--------+-------------------+-------------------+ | ID | NAME | CREATED AT | HEALTH | STATUS | EXTERNAL ENDPOINT | INTERNAL ENDPOINT | +----+------+------------+--------+--------+-------------------+-------------------+ +----+------+------------+--------+--------+-------------------+-------------------+