{"id":17951083,"url":"https://github.com/marcusschiesser/eks-cluster-with-lb-controller","last_synced_at":"2025-04-03T16:15:27.563Z","repository":{"id":66459234,"uuid":"456421288","full_name":"marcusschiesser/eks-cluster-with-lb-controller","owner":"marcusschiesser","description":"Terraform script to create a EKS cluster with AWS Load Balancer Controller and External DNS","archived":false,"fork":false,"pushed_at":"2022-05-02T02:43:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T04:42:59.952Z","etag":null,"topics":["aws","balancer","certificate","controller","dns","eks","external","load","manager","terraform","vpc"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcusschiesser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T08:38:23.000Z","updated_at":"2022-05-10T12:17:35.000Z","dependencies_parsed_at":"2023-02-28T19:46:05.463Z","dependency_job_id":null,"html_url":"https://github.com/marcusschiesser/eks-cluster-with-lb-controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusschiesser%2Feks-cluster-with-lb-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusschiesser%2Feks-cluster-with-lb-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusschiesser%2Feks-cluster-with-lb-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusschiesser%2Feks-cluster-with-lb-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcusschiesser","download_url":"https://codeload.github.com/marcusschiesser/eks-cluster-with-lb-controller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247033813,"owners_count":20872532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","balancer","certificate","controller","dns","eks","external","load","manager","terraform","vpc"],"created_at":"2024-10-29T09:42:39.736Z","updated_at":"2025-04-03T16:15:27.541Z","avatar_url":"https://github.com/marcusschiesser.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EKS Cluster with Load Balancing Controller\n\nThis [terraform](https://www.terraform.io/) script creates a new EKS cluster in an existing VPC using spot instances with the following features:\n\n1. [AWS Load Balancer Controller](https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html) v2.3.1\n2. [External DNS](https://github.com/kubernetes-sigs/external-dns) v0.10.2\n\nThe advantage of this configuration is that for the lifecycle of application specific resources (DNS entries, load balancers, target groups), Terraform is not needed. [Kubernetes ingress resources](https://kubernetes.io/docs/concepts/services-networking/ingress/) with [specific annotations](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/ingress/annotations/) are sufficient and can be checked into each application's repository to fulfill IaC requirements.\n\nIf certificates are added to the [AWS Certificate Manager](https://aws.amazon.com/certificate-manager/) in the cluster's account, the applications will be able to use the certificates as well. The certificates are discovered using [Certificate Discovery](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/ingress/cert_discovery/#discover-via-ingress-rule-host). This works with wildcard certificates as well.\n\n[k8s/game2048.yaml](./k8s/game2048.yaml) is the [2048 game example](https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html) used by the AWS Load Balancer Controller, but this version is configured to use HTTP and HTTPS. \n\nThis configuration doesn't create a VPC, but if needed one can easily be added by using the [VPC Terraform module](https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest).\n\n\u003e Note: This setup is loosely based on [Provisioning Kubernetes clusters on AWS with Terraform and EKS](https://learnk8s.io/terraform-eks#three-popular-options-to-provision-an-eks-cluster), but is using the latest software versions from 2022 and supports External DNS as well.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusschiesser%2Feks-cluster-with-lb-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcusschiesser%2Feks-cluster-with-lb-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusschiesser%2Feks-cluster-with-lb-controller/lists"}