Skip to content

Commit 4732d85

Browse files
committed
update doc about delete cluster
1 parent d43c67f commit 4732d85

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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
238243
your openstack Cluster API Kubernetes cluster.
239244

240245
1. 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*

0 commit comments

Comments
 (0)