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

  • tacos.tutorial.example.com
  • nachos.tutorial.example.com

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

--

--

--

Ryder Damen is a DevOps engineer by day, and also a DevOps engineer by night. He enjoys travelling, trying new things and making the web a stranger place.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Take Your Brain to the Gym

A brief introduction to Binary Search Tree (BST) using Python

Be Multi-Cloud Developer

Why quality software always matters

HTB Walkthrough: Shocker (retired)

A Really Useful Guide to API’s

“Hey world — let me get my data!”

Chrysalis update — November 27

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
Ryder Damen

Ryder Damen

Ryder Damen is a DevOps engineer by day, and also a DevOps engineer by night. He enjoys travelling, trying new things and making the web a stranger place.

More from Medium

AWS profile switch/ auto-suggestion/ auto-completion — custom bash script

CloudTrail Monitoring with CloudWatch

Using Codefresh with GKE Autopilot for native Kubernetes pipelines and GitOps deployment

Terraform v1.1: The Journey Continues