Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 913 Bytes

04-cluster-teardown.md

File metadata and controls

30 lines (16 loc) · 913 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 Redis Database cluster and any other cloud resources you created

Step 3 - Celebrate, You're Done!