Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.36 KB

AmazonEKS.md

File metadata and controls

48 lines (35 loc) · 1.36 KB

Amazon EKS

Setup time ~ 25 minutes

Install AWS CLI and ekscli

brew install awscli
brew tap weaveworks/tap
brew install weaveworks/tap/eksctl

Ref: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Ref: https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html

Configure aws cli credentials

You'll need the programmatic credentials (Key/Secret) with the appropriate priveledges.

Ref: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-quickstart.html

Create EKS cluster

eksctl create cluster \
--name anton-cluster \
--node-type c5.4xlarge \
--nodes 3 \
--node-volume-size 50 \
--region us-east-2

Cluster creation time is ~20 minutes. Grab a coffee or walk your dog while you wait.

Ref: eksctl create cluster documentation https://eksctl.io/usage/creating-and-managing-clusters/

Ref: VM types/sizes: https://aws.amazon.com/ec2/instance-types/ recommended node size - at least 4 cores/16GB RAM (m5.xlarge+)

Add cluster credentials to kubectl

eksctl create cluster automatically adds newly created cluster credentials as the default context upon creation. No additional actions needed.

Delete cluster

eksctl delete cluster \
--name anton-cluster \
--region us-east-2 

Clear up kubectl context

eksctl delete cluster will delete the kubectl context for you. No additional actions needed.