mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-30 14:52:50 +00:00
855 B
855 B
NAME
kk delete cluster: Delete a cluster.
DESCRIPTION
Delete a cluster. This command will use the kubeadm reset to reset all the nodes. Then, reset network policy, stop etcd, remove cluster directory and uninstall Kubernetes certs-auto-renew script.
OPTIONS
--debug
Print detailed information. The default is false.
--filename, -f
Path to a configuration file.
--all, -A
Delete all CRI(docker/containerd) related files and directories.
EXAMPLES
Delete an all-in-one cluster.
$ kk delete cluster
Delete a cluster from a specified configuration file.
$ kk delete cluster -f config-example.yaml
Delete a cluster included CRI related files and directories from a specified configuraion file.
$ kk delete cluster -f config-example.yaml --all
$ kk delete cluster -f config-example.yaml -A