Terraform EKS
Terraform documentation can be found here
Steps
- Run
terraform plan
andterraform apply
to create infrastructure - Export kubeconfig
- Install
aws-iam-authenticator
from here - Run
aws eks update-kubeconfig --name <EKS-NAME>
- Install
- Join worker node
- Run terraform output config_map_aws_auth and save the configuration into a file, e.g. config_map_aws_auth.yaml
- Run
kubectl apply -f config_map_aws_auth.yaml
- You can verify the worker nodes are joining the cluster via:
kubectl get nodes --watch