kubermatic / kubeone

Kubermatic KubeOne automate cluster operations on all your cloud, on-prem, edge, and IoT environments.
https://kubeone.io
Apache License 2.0
1.39k stars 235 forks source link

kubeone reset: add delete k8s generated cloud resources like Load Balancers and PVs #3394

Open toschneck opened 2 months ago

toschneck commented 2 months ago

Description of the feature you would like to add / User story

As a kubeone user I would like to clean up my environment and delete all kubeone created resources, inkluding the LBs and Volumes what may are created within the Kubernetes Cluster in order to have a clean environment after kubeone reset

Solution details

Currently (at least at AWS) the loadbalancer get not deleted before the control planes get destroyed. So they will stay for manual cleanup. Therfore it would be good to have a similar flag as --destroy-workers e..g --destory-cloud-resources what cleans up:

Alternative approaches

Use cases

Clean environment after kubeone reset.

Additional information

rajaSahil commented 1 week ago

I can work on this, assigning it to me. Thanks @xmudrii for giving an overview. /assign