GithubHelp home page GithubHelp logo

eks's Introduction

Engineering Learning Series - EKS

Follow the below steps to get setup with a Cloud9 environment

1. Launch a Cloud9 Environment

Click the button to begin creating a CloudFormation stack for the region you are assigned.

Preferably right click an open it in a new tab.

Region CloudFormation
us-east-1 Launch Stack
us-west-2 Launch Stack
ap-southeast-1 Launch Stack

Just before clicking "Create stack" button, please tick "I acknowledge that AWS CloudFormation might create IAM resources."

If you get stuck, the CloudFormation template is available here

2. Attach the IAM Role to the Cloud9 instance

This can be done in the EC2 console, navigate to your EC2 instances, or click the link below:

Preferably right click an open it in a new tab.

Region EC2
us-east-1 Console link
us-west-2 Console link
ap-southeast-1 Console link
  • Select the Cloud9 instance
  • Click Actions > Instance Settings > Attach/Replace IAM Role
  • Filter the roles, searching for "cloud9"
  • Click Apply once the role is selected

3. Access the Cloud9 environment

This can be done in the Cloud9 console, navigate to Cloud9 or click the link below:

Preferably right click an open it in a new tab.

Region EC2
us-east-1 Console link
us-west-2 Console link
ap-southeast-1 Console link
  • Click Open IDE

4. Setup the Cloud9 environment

The environment will be our workstation for the sessions, there are a few steps needed to get it setup

  • From within the Cloud9 environment perform the below steps:

    • Click on AWS Cloud9 (top left) > Preferences
    • Click on AWS SETTINGS > Credentials
    • Turn off 'AWS managed temporary credentials'
  • Change to a dark theme if you prefer:

    • View > Themes > UI Themes > Classic Dark

Run the below commands in the Cloud9 terminal

Clone the repository

git clone https://github.com/els-syd/eks.git

Run the bootstrap script

The script installs and configures the necessary pre-requisites

eks/scripts/bootstrap.sh

Confirm the IAM role is as expected

5. Launch the EKS Cluster

Before launching the cluster with the command below, ensure the IAM role is correct in the previous step

eksctl create cluster --ssh-access --version 1.13 --node-type t3.medium --name eks

The EKS cluster creation process will take about 15-20 minutes

Once complete, 2 Worker Nodes should now be in Ready status

kubectl get nodes

Example output:

NAME                                               STATUS   ROLES    AGE   VERSION
ip-192-168-29-29.ap-southeast-1.compute.internal   Ready    <none>   27h   v1.13.7-eks-c57ff8
ip-192-168-88-24.ap-southeast-1.compute.internal   Ready    <none>   27h   v1.13.7-eks-c57ff8

View the EKS Cluster in the console

To view the EKS Cluster configuration, navigate to EKS in the console or click the link below:

Region EC2
us-east-1 Console link
us-west-2 Console link
ap-southeast-1 Console link

Cleanup (Only do this after the end of all three sessions)

After the end of all three sessions, follow the below steps to delete the EKS cluster and Cloud9 environment

Delete the EKS cluster

This can be done in the Cloud9 console, navigate to Cloud9, or click the link below:

Region EC2
us-east-1 Console link
us-west-2 Console link
ap-southeast-1 Console link
  • Delete the EKS cluster from the Cloud9 terminal with the below command:
eksctl delete cluster eks

Delete the Cloud9 CloudFormation stack

This can be done in the CloudFormation console, navigate to CloudFormation, or click the link below:

Region EC2
us-east-1 Console link
us-west-2 Console link
ap-southeast-1 Console link

There may be a number of stacks, select the stack named "cloud9", and click the "Delete" button

eks's People

Contributors

dkeightley avatar lutierigb avatar starchx avatar amzcarlli avatar

Watchers

James Cloos 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.