Skip to content

Instantly share code, notes, and snippets.

@makanijatin
Last active October 17, 2018 20:13
Show Gist options
  • Save makanijatin/b891e5dfe4091caab08dee5170c81a7f to your computer and use it in GitHub Desktop.
Save makanijatin/b891e5dfe4091caab08dee5170c81a7f to your computer and use it in GitHub Desktop.

EKS set up

Create your Amazon EKS Service Role

 https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#role-create

Install docker:

https://docs.docker.com/install/linux/docker-ce/centos/

Create your Amazon EKS Cluster VPC

 https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#vpc-create

Install and Configure kubectl for Amazon EKS

To install kubectl for Amazon EKS

 https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#get-started-kubectl
 https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html
 
 curl -o kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/darwin/amd64/kubectl
 curl -o kubectl.sha256 https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/darwin/amd64/kubectl.sha256
 Compare the generated SHA-256 sum in the command output against your downloaded SHA-256 file. The two should match
 openssl sha -sha256 kubectl
 chmod +x ./kubectl
 mkdir $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH
 echo 'export PATH=$HOME/bin:$PATH' >> ~/.bash_profile
 kubectl version --short --client

To install aws-iam-authenticator for Amazon EKS

curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/darwin/amd64/aws-iam-authenticator
curl -o aws-iam-authenticator.sha256 https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/darwin/amd64/aws-iam-authenticator.sha256
openssl sha -sha256 aws-iam-authenticator
chmod +x ./aws-iam-authenticator
cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator && export PATH=$HOME/bin:$PATH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bash_profile
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
aws-iam-authenticator help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment