This repo uses terraform to provision an AWS EKS managed kubernetes cluster following this tutorial
TL;DR:Terraform and EKS on AWS
- Set up your IAM profile to be able to do kubernetes things.
- Build the infrastructure
- configure the new cluster with vars.
TODO: TL;DR:Deploy Jenkins onto EKS
- TODO: Set up Jenkins IAM
- TODO: Set up Jenkins Master
- TODO: Set up Jenkins Executors
AWS cli kubectl aws-iam-authenticator
- download authenticator via curl
- make executable
- mv to classpath (cp aws-iam-authenticator /usr/local/sbin)
aws —version #need version 1.16.8+
aws sts get-caller-identity #uses this IAM profile for kubectl exec
- vpc
- 2 subnets
- route table
- route table association
- security group
- security group rule (local workstation to master)
- iam role
- iam policy documents
- eks master
- security group
- security group rule (node to node)
- security group rule (node to master)
- security group rule (master to node)
- iam role
- iam policy documents
- eks master
- autoscaling group
- asg launch configuration
- amazon ami for kubernetes
- Apply eks config
- Apply worker nodes config
terraform output kube_config > ~/.kube/config
terraform output config_map_aws_auth > config_map_aws_auth.yaml
kubectl apply -f config_map_aws_auth.yaml
kubectl get nodes —watch