Coder Social home page Coder Social logo

eksctl-deployment's Introduction

eksctl-deployment

This repo outlines a custom template that can be used to deploy the Amazon EKS service with some custom fields within a linux environment

Requirements

  • Make sure eksctl is installed on your machine:
# Download and extract the latest release of eksctl with the following command.
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
# Move the extracted binary to /usr/local/bin.
sudo mv /tmp/eksctl /usr/local/bin
# Test that your installation was successful with the following command. 
eksctl version
  • Install kubectl using the official guide.
  • Create an AWS access key on the AWS console and populate the .aws/credentials file with the aws_access_key_id and aws_secret_access_key using the following template:
[default]
aws_access_key_id = **************
aws_secret_access_key = ****************************************

Create eksCluster

Perform the following steps on your linux machine:

Option 1

  • Clone this repository to your local machine:
git clone https://github.com/SamsonIdowu/eksctl-deployment.git
  • Edit the config.yaml file and save the changes
nano ./eksctl-deployment/config.yaml
  • Create an eksCluster using the eksctl create command as shown below:
eksctl create cluster -f ./eksctl-deployment/config.yaml

Option 2

  • Edit the following commands and run on a linux shell:
eksctl create cluster \
--name=test-cluster \
--version=1.29 \
--region=us-east-1 \
--zones=us-east-1a,us-east-1b \
--nodegroup-name=eks-nodes \
--node-type=t2.micro \
--nodes=2 \
--nodes-min=2   \
--nodes-max=4 \
--vpc-cidr=<your-vpc-cidr> \
--alb-ingress-access \

Destroy eksCluster

Perform the following steps on your linux machine:

Option 1

  • To remove your eksCluster and all related resources, run the following command:
eksctl delete cluster -f ./eksctl-deployment/config.yaml

Option 2

  • To remove your eksCluster and all related resources, run the following command:
eksctl delete cluster --name <cluster-name> --region <region>

For more on using eksctl, follow this reference

eksctl-deployment's People

Contributors

samsonidowu 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.