Dylan Scott

Dylan Scott

Developer. DevOps

© 2020

Kubernetes From Scratch: Deploying Infrastructure with Terraform

Notes

  • Create bucket in S3 for Terraform state - accept defaults
  • Create new directory in our project repo called infra
  • Create 5 files
    • main.tf
    • vpc.tf
    • vars.tf
    • terraform.tfvars
    • k8s.tf
  • Introduce diagram
    • 1 VPC - 10.0.0.0/16
    • 1 IGW
    • 3 public subnets across 3 AZ’s for HA - 10.0.1.0/24 -> 10.0.3.24
    • 3 RTBs
    • 3 master nodes T3A Small - increased root vol size
    • 3 worker nodes T3A Micro - increase root vol size
    • 2 SGs
    • 2 LB - 1 private, 1 public
  • TF Files
    • Populate main.tf
    • Run terraform init
    • Populate vars.tf
    • Populate terraform.tfvars
    • Populate vpc.tf
    • Populate k8s.tf
    • Populate output.tf
  • Deploy infra
  • Teardown

<- Previous lesson

Next lesson ->

Course index