Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriszhangusc/terraform-eks-aws-load-balancer-controller-example
https://github.com/chriszhangusc/terraform-eks-aws-load-balancer-controller-example
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chriszhangusc/terraform-eks-aws-load-balancer-controller-example
- Owner: chriszhangusc
- Created: 2021-07-16T23:08:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T14:56:57.000Z (over 3 years ago)
- Last Synced: 2024-11-01T23:42:34.264Z (2 months ago)
- Language: HCL
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform EKS AWS Load Balancer Controller Example
This is an example that shows how to create an [Amazon EKS](https://aws.amazon.com/eks/?whats-new-cards.sort-by=item.additionalFields.postDateTime&whats-new-cards.sort-order=desc&eks-blogs.sort-by=item.additionalFields.createdDate&eks-blogs.sort-order=desc) cluster with [AWS Load Balancer Controller](https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html) in [Terraform](https://github.com/hashicorp/terraform)
## Prerequisites
You have to have a valid AWS account and the [AWS cli configured](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html).
## Installation
1. `terraform init`
2. `terraform plan`
3. `terraform apply`
4. Update your kubernetes config (by default stored in ~/.kube/config) to point to the new cluster using the console output from the last step.## Deploy game 2048 to the new cluster
1. Run `kubectl apply -f ./game-2048.yaml`
2. 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.