Terraforming Kubernetes on Linode
What if starting a remote virtual machine instance was as simple as changing a number on a document and running a command? That is how simple terraform can be and why it's so powerful.
Using documents to change what server we need running is a feature of Infrastructure as Code and can be a paradigm shift for many developers since it's so simple yet effective. One of the biggest advantages of IaC and terraform: version control and CI/CD pipeline automation.
Terraform will turn on (and off) the servers we need. Kubernetes will manage how we allocate the resources on those servers to run the applications we want and need. The pair is a juggernaut of automation. This post will teach you exactly what to do to use them both.
Want a minimal and rapid-fire version of this post? Check out this repo.
Resources
Lessons
1
Introduction
2:15
2
Before Getting Started
3:09
3
Create your Project Directory
1:36
4
Configuring Linode Object Storage for Terraform
6:27
5
Linode API Token
1:50
6
Initialize Terraform
7:22
7
Path-based Variables in Terraform
4:48
8
Create a Local File with Terraform
5:19
9
Prepare to Terraform A Kubernetes Cluster
6:21
10
Updating Backend & Terraform State
1:53
11
K8S Config to Input Variables
4:48
12
Terraforming the Kubeconfig File
6:15
13
Verify Kubectl
3:12
14
Your First Container Deployment on Kubernetes
7:16
15
External Traffic with Kubernetes Services
6:01
16
Wrap Up
7:27