Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.