If you no longer use a Container Service for Kubernetes (ACK) cluster or you accidentally release the Server Load Balancer (SLB) instance that is associated with the API server of the cluster, you can delete the cluster in the ACK console.
Considerations
Before you delete a cluster, you must delete the workloads in the cluster, including Deployments, StatefulSets, Jobs, and CronJobs. You cannot delete the cluster if you do not delete the workloads. For more information about Kubernetes workloads, see Workloads.
ACK Lingjun managed clusters contain Lingjun computing nodes, which cannot be unsubscribed or released. By default, Lingjun computing nodes are retained after you delete the cluster.
Procedure
Log on to the ACK console. In the left-side navigation pane, click Clusters.
Optional. In the Actions column of the cluster details page, choose More > Disable Deletion Protection.
In the Actions column of the cluster details page, choose More > Delete. In the Delete Cluster dialog box, confirm the cluster that you want to delete and select the resources that you want to retain. Then, select I understand the above information and want to delete the specified cluster and click OK.
FAQ
What do I do if an ACK cluster cannot be deleted?
Resource Orchestration Service (ROS) cannot automatically delete a resource if the resource contains subresources that are manually added. For example, ROS cannot release a virtual private cloud (VPC) that contains a manually added vSwitch. Consequently, clusters deployed in the VPC cannot be deleted.
ACK allows you to forcefully delete clusters. If your first attempt to delete a cluster fails, you can forcefully delete the cluster and the ROS resource stack. However, when you forcefully delete a cluster, the resources that are created by ROS and the manually added resources are not released. You must manually release these resources.
On the Clusters page, find the cluster that you want to delete and choose
in the Actions column.In the dialog box that appears, you can view the resources that failed to be deleted. Click OK to delete the cluster and ROS resource stack.
NoteIf you select Retain Resources in the Delete Cluster dialog box, the resources that you select are not released. You must manually release these resources.
References
For more information about how to create an ACK Lingjun cluster, see Create an ACK Lingjun cluster.
Lingjun node pools allow you to manage Intelligent Computing LINGJUN groups and Lingjun nodes in an efficient manner. For more information, see Overview.