Git Product home page Git Product logo

aws-eks-scalable-app's Introduction

EKS [ Cluster Autoscaler ]

Overview

EKS Cluster Autoscaler basically handles both master and worker nodes in Amazon's Elastic Kubernetes Service (EKS). It uses EKS for master node stuff and the Cluster Autoscaler to adjust worker nodes based on how busy things get. Easy peasy!

Installation Steps

1. Set Up VPC:

Use CloudFormation to create a secure VPC environment.

2.Create EKS Role

Make an IAM role with the "AmazonEKSCluster" policy for EKS management.

3. Create EKS Cluster

  • Execute the creation of an EKS cluster, specifying:
    • The previously created EKS role.
    • The VPC established through the CloudFormation.
    • Public and private cluster endpoint access settings.
    • Default selection of pods to be added to the cluster.

4. Add Node Group

Configure the node group with:

  • The VPC created earlier.
  • A role with policies (EC2ContainerRegistry, EKS_CNI, EKSWorkerNode, IAM-Policy_for_AutoScaler).

5. Configure kubectl

Use Cloud Shell to configure kubectl for EKS interaction.:

aws eks update-kubeconfig --name <cluster_name>

6. Deploy Cluster Autoscaler

Run the cluster-AutoScaler.yaml file to get your autoscaler going.

7. Customize Autoscaler

Use the command below to edit the Cluster Autoscaler deployment and customize parameters such as cluster name and Kubernetes version:

kubectl edit deployment -n kube-system cluster-autoscaler

8. Check Deployment

Make sure everything's running smoothly by checking pod status and logs:

kubectl get pod -n kube-system
kubectl logs -n kube-system POD_NAME

9. Deploy Nginx:

Deploy a sample Nginx app for testing by rununng the nginx.yaml #Then Access the application through the LoadBalancer DNS in web browser.

10. Test Autoscaling

Play around with Nginx replicas to see autoscaling behavior.

aws-eks-scalable-app's People

Contributors

ismail116 avatar

Stargazers

 avatar Demyana S. Zaki avatar

Watchers

 avatar

Forkers

menna55555

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.