Delete a cluster via OpenStack CLI

In order to delete a cluster it is possible to use the following command:

$ openstack coe cluster delete mycluster
Request to delete cluster mycluster has been accepted.


The cluster deletion can be monitored via the list command:

$ openstack coe cluster list
+---------------------+--------------------+------------+------------+--------------+--------------------+---------------+
| uuid                | name               | keypair    | node_count | master_count | status             | health_status |
+---------------------+--------------------+------------+------------+--------------+--------------------+---------------+
| 5rb3t3e-d2cgp-37c7- | mycluster          | mykeypair  |          2 |            3 | DELETE_IN_PROGRESS | HEALTHY       |
| b54d1-v6nm84s9gf0   |                    |            |            |              |                    |               |
+---------------------+--------------------+------------+------------+--------------+--------------------+---------------+


Once the cluster is deleted the list command will not return the deleted cluster anymore.


Delete a cluster via Terraform/OpenTofu

The created cluster can be then destroyed by simply running:

Terraform

$ terraform destroy


OpenTofu

$ tofu destroy




  • No labels