Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 914 Bytes

05-cluster-teardown.md

File metadata and controls

30 lines (16 loc) · 914 Bytes

Chapter 5 - Destroy a DigitalOcean Kubernetes Cluster with Terraform

Rationale

In this chapter we will use Terraform to destroy our DigitalOcean Managed Kubernetes Cluster so that you are not charged for a cluster you are not using.

Prerequisites

Instructions

Step 1 - Tear down your cluster with Terraform

Change into your terraform directory and run the terraform destroy command.

cd terraform && terraform destroy -var do_token=$DO_TOKEN 

Look in the Cloud Console and double check that the cluster is being terminated.

Step 2 - Destroy your Droplet and any other cloud resources you created with Crossplane

Step 3 - Celebrate, You're Done!