Coder Social home page Coder Social logo

pen-pal / terraform-aws-kubernetes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jecnua/opentofu-aws-kubernetes

0.0 0.0 0.0 103 KB

A terraform open source module to spin a kubernetes cluster in your AWS environment

License: MIT License

HCL 82.67% Shell 17.33%

terraform-aws-kubernetes's Introduction

Terraform module for kubernetes on AWS

Build Status https://www.terraform.io/ License: MIT Average time to resolve an issue Percentage of issues still open

This repo contains the module to install a kubernetes cluster in your environment. More informations can be found at its own repo:

NOTE: It only suppport terraform 0.12.x onward.

For older Terraform version please use:

  • For 0.11 the tag v0.11.x-last-supported-code

Connect to the cluster

You can follow the guide here:

AWS EKS

If you are interested in AWS EKS I can advice to read the following link:

The code is already implemented here:

AWS also released a quickstart here:

Gotchas

This module is not ready for a production workload. The first thing you want to do if going in that direction is to separate etcd in it's own external cluster or run it with the operator platoform.

The second thing you want to do is add autoscaling to the workers nodes and diversify the set of ec2 server to give different combination of CPU/RAM.

As it is now there is no path to upgrade aside moving the workload to another cluster. It is not a big problem if you run everything stateless, but keep it in mind.

Implementation choices

At the moment I wanted to avid dependencies to external tools like ansible, so the installation happens in bash with cloud-init. This means some architectural choices are defined in there and they can't be modified. One example is I am using weave as overlay network implementation and swapping it with flannel is not possible.

Obviously this can be fixed, just fork and PR into this :)

Regenerate docs

The script "regenerate.sh" is used to refresh the dependencies and the params file. It should be run it after any parameter change or when new resources are added.

./regenerate.sh
k8s: params regenerated

You need to install terraform-docs:

go get github.com/segmentio/terraform-docs

terraform-aws-kubernetes's People

Contributors

jecnua avatar adamwshero 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.