Code Monkey home page Code Monkey logo

eks-getting-started's Introduction

Finally AWS EKS is generally available. If you are keen to give it a go you have 2 docs to start:

Unfortunately both have a lot of manual steps. I wanted to have an autoated way to create a 3 node EKS cluster.

Usage

It is as simple as:

source ./all.sh 
eksCreateCluster

Now your env is ready to use kubectl against eks. The KUBECONFIG env var is pointing to ~/.kube/config-eks

$ kubectl get all
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.100.0.1   <none>        443/TCP   16m

To wait for nodes joining:

$ kubectl get nodes --watch

After a couple of minutes you will see all Workers as Ready:

$ kubectl get no
NAME                              STATUS    ROLES     AGE       VERSION
ip-192-168-144-225.ec2.internal   Ready     <none>    1m        v1.10.3
ip-192-168-227-12.ec2.internal    Ready     <none>    1m        v1.10.3
ip-192-168-72-48.ec2.internal     Ready     <none>    1m        v1.10.3

Configuration

You can change all paramters, most notably: instanceType, min and max worker numbers:

export EKS_NODE_TYPE=t2.small
export EKS_NODE_MIN=3
export EKS_NODE_MAX=3

eksCreateCluster

Cleanup

To delete every resources (VPC, Workers, EKS cluster)

eksCleanup

Note: the eksServiceRole and keyPair will be kept.

eks-getting-started's People

Contributors

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