Prepare to delete a self-managed workload cluster
If you did not make your workload cluster self-managed, as described in Make New Cluster Self-Managed, see Delete the workload cluster.
-
Create a bootstrap cluster:
The bootstrap cluster will host the Cluster API controllers that reconcile the cluster objects marked for deletion:
-
Move the Cluster API objects from the workload to the bootstrap cluster: The cluster lifecycle services on the bootstrap cluster are ready, but the workload cluster configuration is on the workload cluster. The
move
command moves the configuration, which takes the form of Cluster API Custom Resource objects, from the workload to the bootstrap cluster. This process is also called a Pivot. -
Use the cluster lifecycle services on the workload cluster to check the workload cluster status:
Use dkp with the bootstrap cluster to delete the workload cluster.
-
Wait for the cluster control-plane to be ready:
Delete the workload cluster
-
Make sure your AWS credentials are up to date. Refresh the credentials using this command:
-
Delete the Kubernetes cluster and wait a few minutes:
Before deleting the cluster, dkp deletes all Services of type LoadBalancer on the cluster. Each Service is backed by an AWS Classic ELB. Deleting the Service deletes the ELB that backs it. To skip this step, use the flag
--delete-kubernetes-resources=false
.After the workload cluster is deleted, delete the bootstrap cluster.
Delete the bootstrap cluster
Known Limitations
- The Konvoy version used to create the workload cluster must match the Konvoy version used to delete the workload cluster.