Tired of creating clusters manually just to try something out for a few minutes? Then run this.
- Terraform installed
- AWS credentials
- AWS cli installed on a host to connect to the cluster
- kubectl installed on a host to deploy to the cluster
- Install Terraform
- Clone this repository
- Run a
terraform initto grab providers and modules - Run
aws_configureand establish your credentials - Run a
terraform_applyand wait 10 - 15 minutes - Run
aws eks --region us-east-1 update-kubeconfig --name my-clusterto add the context to your kubeconfig - Profit
- Install Terraform
- Clone this repository
- Edit the variables in
variables.tfto match any unique values you want to apply to your instances - Edit the public key in
keypairs.tfto match the public key of a keypair you generated somewhere usingssh-keygen - Run a
terraform initto grab providers and modules - Run
aws_configureand establish your credentials - Run a
terraform_applyand wait 10 - 15 minutes - Profit
- Run
aws eks --region us-east-1 update-kubeconfig --name my-clusterto add the context to your kubeconfig
- Possibility of resources not efficient. The instances in the worker group could be too small to assign IP addresses to all the pods
- Ensure the workers are getting public IP addresses