Code Monkey home page Code Monkey logo

demo-eks-alb's Introduction

Minimal demo: AWS EKS with ALB

  • Uses the default backend configuration (local file named terraform.tfstate -- this has been .gitignore-d!).
  • AWS authentication requires additional configuration, such as selecting a CLI profile. For more, see https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration.
  • This repository can build a minimal EKS cluster with an ALB, and omits as much detail as possible. It does not demonstrate security, best practice, nor least privilege -- be mindful of your observability, public access, and IAM policies!
  • Requires Terraform 1.3 or above.
  • Estimated cost to run (in eu-west-1): 0.2628 $/hr = 6.3 $/day = 189 $/month
    • VPC NAT Gateways (2x): 2*0.048 $/hr = 0.096 $/hr
    • EKS Cluster: $0.10 /hr
    • EKS Node Group (2x t3.small): 2*0.0208 $/hr
    • Application Load Balancer: 0.0252 $/hr
  • To deploy it, run terraform init followed by terraform apply. It takes ~15 minutes to complete.
  • Upon completion, the cluster will run httpbin fronted by an ALB. The ALB hostname is given by the httpbin_ingress_host output value.
  • You might see Warning: "default_secret_name" is no longer applicable for Kubernetes v1.24.0 and above. Although it doesn't apply to this demo, this warning can't be suppressed (see this issue).
  • To tear it down, run terraform destroy.

demo-eks-alb's People

Contributors

roberth-k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.