If you no longer need a cluster or you accidentally released the Server Load Balancer (SLB) instance associated with the API server of the cluster, you can delete the cluster in the Container Service for Kubernetes (ACK) console.
Considerations
Before deleting a cluster, you must delete all workloads in the cluster, including Deployments, StatefulSets, Jobs, and CronJobs. You cannot delete the cluster if workloads remain. 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 navigation pane on the left, click Clusters.
Optional. In the Actions column of the cluster details page, choose More > Disable Deletion Protection. Follow the on-screen instructions to complete the operation.
In the Actions column of the cluster details page, choose More > Delete.
NoteIn the Delete Cluster panel, carefully confirm the resources that will be automatically deleted (such as ECS, ECI, and ACS). Select the resources that you want to retain, carefully read the notes about resource deletion and billing on the page, and follow the on-screen instructions to complete the deletion operation.
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 lets you 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.