Giter VIP home page Giter VIP logo

eks's Introduction

EKS Cluster Management Script

This Bash script manages the creation and destruction of an Amazon EKS cluster using eksctl. It supports deploying a new cluster with specific configurations like region, node type, and VPC CIDR. Additionally, it can install a cluster autoscaler and NGINX Ingress controller.

Prerequisites

  • AWS CLI installed and configured
  • eksctl installed
  • kubectl installed
  • Helm installed (for NGINX Ingress)

Configuration

  • region: AWS region (default eu-central-1)
  • version: EKS version (default '1.27')
  • cidr: VPC CIDR (default '10.0.0.0/16')
  • node_type: EC2 instance type for nodes (default 't2.small')

Usage

To create a cluster:

./cluster.sh -c [name of the cluster]

To destroy a cluster:

./cluster.sh -d [name of the cluster]

Example:

./cluster.sh -c eks-2023
./cluster.sh -d eks-2023

Functions

  • create_cluster: Creates a new EKS cluster with the specified configurations.
  • install_autoscaler: Installs the Kubernetes cluster autoscaler.
  • install_ingress_nginx: Installs the NGINX Ingress controller using Helm.
  • destroy_ingress_nginx: Uninstalls the NGINX Ingress controller.
  • delete_cluster: Deletes the specified EKS cluster and associated resources.

The script includes additional helper functions and error handling to streamline the process of managing EKS clusters.

eks's People

Contributors

arkeyme avatar ilyataskaev 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.