Giter Club home page Giter Club logo

k8s-tf's Introduction

k8s-tf (non prod version)

This terraform code automates EKS creation with some private + public node groups in a new VPC.

Prerequisites

  • aws account
  • aws cli
  • kubectl
  • helm

K8s Functions supported:

  • Cluster Autoscaler

Hints:

  • It` s recommended to provision first the VPC + security groups.
    # ls
    README.md  _variables.tf  eks  security-groups.tf  terraform.tfstate  terraform.tfstate.backup  vpc.tf
    # cat _variables.tf 
    terraform {
    backend "s3" {
      region  = "eu-central-1"
      profile = "devops"
      bucket  = "privacyscaling-tf-state"
      key     = "nt-eks.tfstate"
      encrypt = "true"
      }
    
    }
    locals {
      vpc = {
        name        = "nt-eks"
        cidr_prefix = "10.45"
      }
    }
    # terraform init
    # terraform apply
    # cp eks/* .
    # ls
    README.md  _variables.tf  autoscaler.tf  efs-csi.tf  efs.tf  eks  eks-cluster.tf  security-groups.tf  terraform.tfstate  terraform.tfstate.backup    vpc.tf
    # terraform init
    # terraform apply
    
  • Before installing Autoscaler make sure you set k8s environment and update-kubeconfig:
    # export KUBE_CONFIG_PATH=~/.kube/config
    # aws eks --region eu-central-1 update-kubeconfig --name 'nt-eks-xxxx'
    
  • VPC name and VPC CIDR can be set editing: _variables.tf
  • Edit backend.s3 in _variables.tf to determine where state will be stored

k8s-tf's People

Contributors

ntampakas avatar

Watchers

 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.