Skip to content

Destroy an existing cluster

Destroy the cluster and all its linked applications and linked resources such as load balancers or any created cloud resource.

Terminal window
k8saas destroy --init-config config.yaml --kubeconfig kubeconfig.yaml
Terminal window
user@machine:~/k8saas$ k8saas destroy -h
Cleanup all associated resources and destroy a k8saas cluster.
Usage:
cli destroy [flags]
Flags:
--base-dir string base directory of k8saas & configuration files (default ".")
--gcp-key-file string path to gcp service account authentication file (in json format)
-h, --help help for destroy
--init-config string cluster initialization config file (in yaml format)
--kubeconfig string Kubeconfig of the target cluster (default "target.kubeconfig")
--resource-deletion-timeout int General resource deletion timeout in seconds (default 1500)
--ssh-public-key-path string path to your ssh public key, used by few providers
Global Flags:
--config string cli config file (default is $HOME/.k8saas.yaml)
-v, --verbose count verbose output (repeat for more verbosity)