Skip to content
Buffalo Kubernetes/CNCF Meetup, Kube Cluster
HCL Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
scripts
.gitignore
LICENSE
Makefile
README.md
ami.json
iam.tf
main.tf
network.tf
variables.tf

README.md

Buffalo CNCF Terraform Files

Go from Zero to Hero in about 5 minutes. The whole concept is to go from nothing to a secure multi-tenant kubernetes in as short amount of time as possible. The driving factor is to provide safe and vanilla sandbo for members.

Deployment

Deployment is real easy but you will need a few things:

You are probably covered if you're running MacOS or a Linux distribution.

  • A working shell - IE: bash, zsh, or tsh; this is used for data gathering and provisioning.
  • ssh client - the ssh command is used as part of the data gathering and provisioning steps.
  • Terraform, you can download it Here.
  • Packer, you can get it Here
  • Some sort of make, perhaps GNUMake.

The next step is to create an AWS api key. Under Services -> IAM -> Users -> Security Credentials -> Access Keys

Now the grand reveal; to create your kubeadm kubernetes cluster you need to run:

make

That's it, enjoy!

To only run the terraform run:

make terraform

To build the AMIs, run:

make packer

To get the make file to stop asking for API keys run something like this:

export AWS_ACCESS_KEY_ID=<aws access key>
export AWS_SECRET_ACCESS_KEY=<aws secret>
export AWS_DEFAULT_REGION=<region name>

Resources used

You can’t perform that action at this time.