The following is a combination of resources provisioned in terraform to allow us to do kubernetes adminsitration and originally created as a helper to aid me in my studies for the CKA and CKAD certifications. I have drawn from previous experience with all of the tools used in this repository.
I have automated most of this using a makefile to allow for very easy creates, updates, and deletion of resources. you can however view the actual code behind the scenes in each of the three folders packer, cluster, bastion_host and the scripts folder
to gain an idea of what is going on. The following table below provides an idea of what each makefile target does
Target | description |
---|---|
worker_ami | Build the worker ami for kubernetes |
master_ami | Build the master ami for kubernetes |
ssh_cleanup | Clean up the local ssh keys and aws keypairs |
kube_test | Runs a terraform plan for the kube cluster |
kube_build | Runs a terraform apply for the kube cluster |
kube_destroy | Runs a terraform destroy for the kube cluster |
bastion_validate | Runs a terraform validate in the bastion_host DIR |
kube_validate | Runs a terraform validate in the cluster DIR |
- Make all, to print out the help for us.
make all
- make worker_ami to build a worker-ami
make worker_ami