Delete a MySQL Cluster
Termination policy
note
The termination policy determines how you delete a cluster.
terminationPolicy | Deleting Operation |
---|---|
DoNotTerminate | DoNotTerminate blocks delete operation. |
Halt | Halt deletes workload resources such as statefulset, deployment workloads but keep PVCs. |
Delete | Delete deletes workload resources and PVCs but keep backups. |
WipeOut | WipeOut deletes workload resources, PVCs and all relevant resources included backups. |
To check the termination policy, execute the following command.
kbcli cluster list mycluster
>
NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME
mycluster default mysql mysql-8.0.33 Delete Running Jul 05,2024 18:46 UTC+0800
Step
Run the command below to delete a specified cluster.
kbcli cluster delete mycluster