Learn KOP - Deprovision EKS Cluster - Rafay Product Documentation

Part 5: Deprovision

What Will You Do

In part 5, you will:

Watch a video of this exercise.

Deprovision EKS Cluster: Getting Started with Rafay Terraform Provider for EKS - YouTube

Deprovision EKS Cluster: Getting Started with Rafay Terraform Provider for EKS

Assumptions

This part assumes that you have completed Part 1 of this series and have a successfully provisioned and healthy EKS cluster.


Deprovision Cluster

Select a method to provision and manage your EKS cluster from the tabs below.

Let us first list the EKS cluster using the RCTL CLI

./rctl get cluster

You should expect to see output like the following

+------------------+---------+-----------+----------------------------+
| NAME             | TYPE    | OWNERSHIP | PROVISION STATUS           |
+------------------+---------+-----------+----------------------------+
| demo-eks-testing | aws-eks | self      | CLUSTER_PROVISION_COMPLETE |
+------------------+---------+-----------+----------------------------+

Now, execute the following command to delete your EKS cluster.

./rctl delete demo-eks-testing

Note

The actual deletion process can take ~10 minutes to ensure that all associated infrastructure resources in AWS is deleted as well.

Step 1: Deprovision Cluster

In this step, we will deprovision the EKS cluster with a Terraform command. The controller will cleanup all cluster components in your Azure account.

terraform destroy

The cluster provision status will show " INFRA DELETION IN PROGRESS". Note, it can take approximately 10 minutes for the deletion to finish.


Recap

Congratulations! At this point, you have successfully deprovisioned the EKS cluster and all associated infrastructure components in your AWS account.