Git Product home page Git Product logo

kubernetes-terraform's Introduction

Terraform Network and EKS Module

This Terraform module creates a network and an EKS cluster in AWS Cloud provider . The network can have subnets, security groups, and other resources, and the EKS cluster can have worker nodes and other resources.

Usage

To use EKS Module you can edit this section of code

resource "aws_eks_cluster" "demo" {
  name     = "demo"
  version  = "1.24"
  role_arn = aws_iam_role.demo.arn

  vpc_config {
    subnet_ids = [
      aws_subnet.private_us_east_1a.id,
      aws_subnet.private_us_east_1b.id,
      aws_subnet.public_us_east_1a.id,
      aws_subnet.public_us_east_1b.id
    ]
  }

  depends_on = [aws_iam_role_policy_attachment.demo_amazon_eks_cluster_policy]
}

Network infrastructure

In this architecture, the AWS VPC is divided into two public subnets and two private subnets. Each public subnet has an internet gateway attached and a route table that directs traffic to the internet gateway. Each private subnet has a NAT gateway attached and a route table that directs traffic to the NAT gateway.

The EKS cluster consists of a control plane with master nodes and worker nodes launched in an auto scaling group. The worker nodes use a launch configuration that specifies the AMI, instance type, and other configuration settings. The worker nodes are also associated with a security group that controls inbound and outbound traffic.

the network is configured to this graph

image

kubernetes-terraform's People

Contributors

ahmedfathyy avatar

Stargazers

 avatar Mostafa Wael avatar Ramkumar Rengarajan avatar  avatar Amanda Tan avatar Ahmed Ihab avatar

Watchers

 avatar

Forkers

alouimedamine

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.