Automate your Kubernetes deployments with Terraform


Userlevel 7
Badge +6

I wanted to share something I have been working on, this blog itself walks through using Terraform to automate the deployment of your Kubernetes cluster within GKE but the github code repository also contains the same for Microsoft AKS and AWS EKS. It also then uses the Terraform Helm provider to deploy Kasten K10 into your Kubernetes cluster to start protecting workloads.

https://vzilla.co.uk/vzilla-blog/using-terraform-iac-to-automate-your-kubernetes-clusters-and-apps

I have a plan here to add additional steps to really help when automating the build out of demo environments. Not only does it help get things up and running within 10 minutes it also is just as quick to remove everything meaning that things are not left there costing anyone money.

Hope its useful to some, would love to get some feedback or input if there are areas that can be improved.


7 comments

Userlevel 7
Badge +20

This is very interesting. Would be nice to see it done for VMware too as it would make deployment in the homelab easy.

Userlevel 7
Badge +9

Great content! Very soon, we will support you in delivering contents in this Corner. 
- I love Terraform a-lot and above all, it is cloud-agnostic!

Userlevel 7
Badge +6

This is very interesting. Would be nice to see it done for VMware too as it would make deployment in the homelab easy.


I believe @AnthonySpiteri has created a terraform script that will at least create a kubeadm based VMware Kubernetes cluster and the helm provider in the Google GKE folder in my github should work with that.

I am not sure of the possibilities with TKG yet with Terraform looks like William Lam might have something - https://williamlam.com/2020/11/using-terraform-to-deploy-a-tanzu-kubernetes-grid-tkg-cluster-in-vsphere-with-tanzu.html

Userlevel 7
Badge +20

This is very interesting. Would be nice to see it done for VMware too as it would make deployment in the homelab easy.


I believe @AnthonySpiteri has created a terraform script that will at least create a kubeadm based VMware Kubernetes cluster and the helm provider in the Google GKE folder in my github should work with that.

I am not sure of the possibilities with TKG yet with Terraform looks like William Lam might have something - https://williamlam.com/2020/11/using-terraform-to-deploy-a-tanzu-kubernetes-grid-tkg-cluster-in-vsphere-with-tanzu.html

Thanks I will check this out.

Userlevel 7
Badge +17

Very interesting. Terraform is a very nice environment with a lot of possibilities.

Userlevel 7
Badge +9

Very interesting. Terraform is a very nice environment with a lot of possibilities.

Seconded!

Userlevel 7
Badge +6

I have seen that @Rick Vanover is testing out the terraform scripts in AKS, anyone else taking the scripts for a spin and have some or any feedback?

Comment