Terminate a cluster
To terminate a cluster in Mission Control, you must remove the cluster’s resource from Mission Control.
This triggers Mission Control to remove associated resources and data.
You can terminate a cluster using the Mission Control UI or the kubectl CLI.
|
To retain the Persistent Volume (PV) after you delete the |
To terminate a cluster, you need the following:
You can use the Mission Control UI or CLI to terminate a cluster:
Terminate a cluster with the Mission Control UI
To terminate a cluster, do the following:
-
In the Mission Control UI, go to Clusters, and then select your cluster.
-
Click Terminate Cluster. A confirmation dialog appears.
-
Enter your cluster name, and then click Terminate Cluster. The cluster is permanently deleted.
Terminate a cluster with the Mission Control CLI
To terminate a cluster, delete the MissionControlCluster resource:
kubectl delete missioncontrolcluster NAME -n PROJECT_SLUG
Replace the following:
-
NAME: The name of theMissionControlClusterresource -
PROJECT_SLUG: The namespace of the projectYou can find the project slug in the Mission Control UI breadcrumbs next to the cluster name on the cluster details page. This command deletes the associated
MissionControlClusterobject, and then Mission Control automatically cleans up associated resources across the local control plane and any remote data planes.When multiple data plane clusters have nodes that cannot communicate with each other, the deletion operation continues. However, when the control plane is not communicating with the data plane, Mission Control cannot communicate with the Kubernetes API server in the data plane cluster, and the deletion operation pauses.
Terminate a cluster with a MissionControlCluster CR
kubectl delete -f CLUSTER_NAME.yaml
Replace CLUSTER_NAME with the name of your cluster.