A series of terraform
templates and Makefile
to aid with the great Kubernetes the Hard Way tutorial by Kelsey Hightower.
Currently this repo only supports Amazon Web Services, but will hopefully include GCE in the near future.
- GNU Make (installed on most *nix OSes)
- Valid AWS account w/ IAM keys
- CloudFlare's PKI Tookit
- OpenSSL
- Hashicorp Terraform
- clone the repo locally
- copy
terraform.tfvars.example
toterraform.tfvars
and include your own ssh-key - run
make
targets
make install
will try to install all dependencies using brew
. If you don't have Homebrew installed, it will notify and error.
The following targets will boostrap the steps in part 1 of the tutorial.
make plan
will run terraform's plan
command using terraform.tfvars
in the root directory and show you expected infrastructure it will create.
make apply
will run terraform's apply
command, creating resources in AWS.
make all-certs
will create all the certs and then scp
them to the Kubernetes hosts created in Part I.
make clean
destroys AWS resources created in Part I and then also cleans up local certs created in Part II.