File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,12 @@ kubectl --kubeconfig=kubeconfig get machines -o yaml
234234
235235### Cluster Deletion
236236
237- This guide explains how to delete all resources that were created as part of
237+ Use following commnad to delete a cluster and all resources it created.
238+ ``` bash
239+ ./clusterctl delete cluster --cluster test1 --bootstrap-type kind --kubeconfig kubeconfig --provider-components examples/openstack/out/provider-components.yaml
240+ ```
241+
242+ Or you can manually delete all resources that were created as part of
238243your openstack Cluster API Kubernetes cluster.
239244
2402451 . Delete all of the node Machines in the cluster. Make sure to wait for the
@@ -251,13 +256,15 @@ your openstack Cluster API Kubernetes cluster.
251256 kubectl --kubeconfig=kubeconfig delete machines -l set=master
252257 ```
253258
254- 3. Delete the kubeconfig file that were created for your cluster.
259+ 3. (optional) Delete the load balaner in your openstack cloud if you created them.
260+
261+ 4. Delete the kubeconfig file that were created for your cluster.
255262
256263 ` ` ` bash
257264 rm kubeconfig
258265 ` ` `
259266
260- 4 . Delete the ssh keypair that were created for your cluster machine.
267+ 5 . Delete the ssh keypair that were created for your cluster machine.
261268
262269 ` ` ` bash
263270 rm -rf $HOME /.ssh/openstack_tmp*
You can’t perform that action at this time.
0 commit comments