Deploying Kubernetes Web Servers to Digital Ocean with TLS and Terraform

Terraform: The Tool, The Myth, The Legend

What You’ll Need

The Code

Call me by your Main.tf

Variables

Building The Cluster

The Load Balancer

DNS Records: A Software Engineer’s Favourite Thing

On-Cluster Deployments

I need to speak to your Certificate Manager

Ingress: The Final Frontier

Putting It All Together

cd terraform
terraform init
terraform apply
Running terraform apply
The digital ocean console while terraform apply is running. As you can see, I’m a big spender on Digital Ocean.
Success!
Our newly deployed sites
terraform destroy

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store