This is an example that shows how to create an Amazon EKS cluster with AWS Load Balancer Controller in Terraform
You have to have a valid AWS account and the AWS cli configured.
terraform init
terraform plan
terraform apply
- Update your kubernetes config (by default stored in ~/.kube/config) to point to the new cluster using the console output from the last step.
- Run
kubectl apply -f ./game-2048.yaml
- Check if the Ingress or AWS Load Balancer is successfully created
kubectl get ingress ingress-2048 -n game-2048
, there should be an address assigned.