Skip to content

chriszhangusc/terraform-eks-aws-load-balancer-controller-example

Repository files navigation

Terraform EKS AWS Load Balancer Controller Example

This is an example that shows how to create an Amazon EKS cluster with AWS Load Balancer Controller in Terraform

Prerequisites

You have to have a valid AWS account and the AWS cli configured.

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.