https://github.com/garylouisstewart/kthw
Using Terraform and Packer to bootstrap a core environment for CKA + CKAD courses
https://github.com/garylouisstewart/kthw
devops devops-tools devops-workflow kubernetes-cluster packer-template shell-scripts terraform-aws
Last synced: 4 months ago
JSON representation
Using Terraform and Packer to bootstrap a core environment for CKA + CKAD courses
- Host: GitHub
- URL: https://github.com/garylouisstewart/kthw
- Owner: GaryLouisStewart
- License: mit
- Created: 2019-12-01T21:49:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T09:51:10.000Z (over 4 years ago)
- Last Synced: 2024-12-31T07:26:30.707Z (6 months ago)
- Topics: devops, devops-tools, devops-workflow, kubernetes-cluster, packer-template, shell-scripts, terraform-aws
- Language: HCL
- Homepage:
- Size: 2.45 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KTHW
Kubernetes the hard way (gary's way)
---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 |
---## Here are a few examples that I have captured when running the makefile
- [ ] Make all, to print out the help for us.
- ``` make all```
- [ ] make worker_ami to build a worker-ami
- ```make worker_ami```