Skip to content

Latest commit

 

History

History
139 lines (104 loc) · 4.38 KB

provision-aws-eks.adoc

File metadata and controls

139 lines (104 loc) · 4.38 KB

AWS EKS Provision Cluster

Step 1: Install and use CLI tools to provision EKS cluster

See docs here

The purpose of this doc is to install the tools necessary to provision the EKS cluster, work with the cluster, install Optimize and provision the cluster itself.

Install eksctl tool

brew tap weaveworks/tap
brew install weaveworks/tap/eksctl
Note
you may need to install XCODE

Install AWS CLI

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

Create IAM user on AWS

Add configs and credentials to your local (MAC) home dir

Create the files

  • nano ~/.aws/credentials

  • nano ~/.aws/config

  • copy the IAM user creds into the file

Step 2: Provision the cluster

Create the cluster

eksctl create cluster --name camunda-cluster --version 1.17 --region us-west-2 --nodegroup-name camunda-nodes --node-type t2.micro --nodes 2

Remove the cluster if needed

eksctl delete cluster --name camunda-cluster
Tip
See the cluster you provisioned in AWS EKS Console

Use aws cli add the context for the EKS kuberentes cluster to kubectl

aws eks --region us-west-2 update-kubeconfig --name camunda-cluster

See more about CLI install here and config quickstart here

Check the context
kubectl config current-context
cat /Users/paullungu/.kube/config