All Projects → cookpad → terraform-aws-eks

cookpad / terraform-aws-eks

Licence: Apache-2.0 license
A Terraform module to Provision AWS Elastic Kubernetes (EKS) clusters and worker nodes

Programming Languages

HCL
1544 projects
go
31211 projects - #10 most used programming language
shell
77523 projects
Smarty
1635 projects

Projects that are alternatives of or similar to terraform-aws-eks

Eksctl
The official CLI for Amazon EKS
Stars: ✭ 3,550 (+6128.07%)
Mutual labels:  kubernetes-deployment, aws-eks
aws-eks-orb
An orb to simplify deployments to Amazon Elastic Container Service for Kubernetes (Amazon EKS)
Stars: ✭ 16 (-71.93%)
Mutual labels:  kubernetes-deployment, aws-eks
Aws Eks Kubernetes Masterclass
AWS EKS Kubernetes - Masterclass | DevOps, Microservices
Stars: ✭ 129 (+126.32%)
Mutual labels:  kubernetes-deployment
django-on-k8s
An end to end tutorial to run a Django Web Application having a PostgreSQL database in Kubernetes
Stars: ✭ 37 (-35.09%)
Mutual labels:  kubernetes-deployment
Sonobuoy
Sonobuoy is a diagnostic tool that makes it easier to understand the state of a Kubernetes cluster by running a set of Kubernetes conformance tests and other plugins in an accessible and non-destructive manner.
Stars: ✭ 2,442 (+4184.21%)
Mutual labels:  kubernetes-deployment
Beetle
🔥 Kubernetes multi-cluster deployment automation service.
Stars: ✭ 149 (+161.4%)
Mutual labels:  kubernetes-deployment
Blackbelt Aks Hackfest
Microsoft Intelligent Cloud Blackbelt Team :: Hackfest Repo
Stars: ✭ 209 (+266.67%)
Mutual labels:  kubernetes-deployment
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (+122.81%)
Mutual labels:  kubernetes-deployment
terraform-openstack-rke2
Deploy Kubernetes on OpenStack with RKE2
Stars: ✭ 38 (-33.33%)
Mutual labels:  kubernetes-deployment
Train Ticket
Train Ticket - A Benchmark Microservice System
Stars: ✭ 180 (+215.79%)
Mutual labels:  kubernetes-deployment
tricks
Run experiments effortlessly on top of Kubernetes
Stars: ✭ 24 (-57.89%)
Mutual labels:  kubernetes-deployment
Kasane
A simple kubernetes deployment manager
Stars: ✭ 160 (+180.7%)
Mutual labels:  kubernetes-deployment
Terraform Aws Eks
Terraform module to create an Elastic Kubernetes (EKS) cluster and associated worker instances on AWS
Stars: ✭ 2,464 (+4222.81%)
Mutual labels:  kubernetes-deployment
Metalk8s
An opinionated Kubernetes distribution with a focus on long-term on-prem deployments
Stars: ✭ 217 (+280.7%)
Mutual labels:  kubernetes-deployment
Charts
JFrog official Helm Charts
Stars: ✭ 148 (+159.65%)
Mutual labels:  kubernetes-deployment
terraform-aws-eks-fargate-cluster
Source code of my AWS EKS with fargate cluster setup
Stars: ✭ 26 (-54.39%)
Mutual labels:  aws-eks-cluster
Devtron
Software Delivery Workflow For Kubernetes
Stars: ✭ 130 (+128.07%)
Mutual labels:  kubernetes-deployment
Terraform Kubernetes
Example of deploying a Kubernetes cluster to Google Cloud using Terraform
Stars: ✭ 152 (+166.67%)
Mutual labels:  kubernetes-deployment
Kubectl Doctor
kubectl cluster triage plugin for k8s - 🏥 (brew doctor equivalent)
Stars: ✭ 209 (+266.67%)
Mutual labels:  kubernetes-deployment
withme3.0
Using Netty as the server and WebSocket as the communication protocol, the instant messaging system developed by microservice architecture is adopted.
Stars: ✭ 66 (+15.79%)
Mutual labels:  kubernetes-deployment

Terraform EKS Module

.github/workflows/ci.yml

This repo contains a set of Terraform modules that can be used to provision an Elastic Kubernetes (EKS) cluster on AWS.

This module provides a way to provision an EKS cluster based on the current best practices employed by Cookpad's Global SRE team.

Using this module

We recommend setting up your cluster(s) using the submodules.

This will allow you to flexibly manage and grow the configuration of your cluster(s) over time, you can also pick and choose the parts of the configuration you want to manage with these modules.

This setup allows you to:

  • Easily add (and remove) additional node groups to your cluster.
  • Easily add additional clusters to your VPC.
  • Provision a cluster to an existing VPC (assuming it has the correct subnets setup)
module "vpc" {
  source  = "cookpad/eks/aws//modules/vpc"
  version = "~> 1.22"

  name               = "us-east-1"
  cidr_block         = "10.4.0.0/16"
  availability_zones = ["us-east-1a", "us-east-1b", "us-east-1c"]
}

module "iam" {
  source  = "cookpad/eks/aws//modules/iam"
  version = "~> 1.22"
}


module "cluster" {
  source  = "cookpad/eks/aws//modules/cluster"
  version = "~> 1.22"

  name       = "hal-9000"

  vpc_config = module.vpc.config
  iam_config = module.iam.config
}

module "node_group" {
  source  = "cookpad/eks/aws//modules/asg_node_group"
  version = "~> 1.22"

  cluster_config = module.cluster.config

  max_size           = 60
  instance_family    = "burstable"
  instance_size      = "medium"
}

Requirements

In order to communicate with kubernetes correctly this module requires kubectl and the aws cli to be installed and on your path.

Note: We considered an approach using the kubernetes terraform provider. But this required multiple edit - plan - apply cycles to create a cluster. This module allows a cluster to be created and ready to use in a single PR.

Multi User Environments

In an environment where multiple IAM users are used to running terraform run and terraform apply it is recommended to use the assume role functionality to assume a common IAM role in the aws provider definition.

provider "aws" {
  region              = "us-east-1"
  version             = "3.53.0"
  assume_role {
    role_arn = "arn:aws:iam::<your account id>:role/Terraform"
  }
}

see an example role here

Without this you may encounter difficulties applying kubernetes manifests to the cluster.

Alternatively you should ensure that all users who need to run terraform are listed in the aws_auth_user_map variable of the cluster module.

Modules

vpc

This module provisions a VPC with public and private subnets suitable for launching an EKS cluster into.

iam

This module provisions the IAM roles and policies needed to run an EKS cluster and nodes.

cluster

This module provisions an EKS cluster, including the EKS Kubernetes control plane, and several important cluster services (critical addons), and nodes to run these services.

It will not provision any nodes that can be used to run non cluster services.

asg_node_group

This module provisions EC2 autoscaling groups that will make compute resources available, in order to run Kubernetes pods.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].