1# Download
2curl -o kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/darwin/amd64/kubectl
3
4# Verify Download
5curl -o kubectl.md5 https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/darwin/amd64/kubectl.md5
6
7# Apply +X permissions
8chmod +x ./kubectl
9
10# Copy the binary to a folder in your $PATH.
11cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH
12
13# Add the $HOME/bin path to your shell initialization file so that it is configured when you open a shell.
14## MacOs
15echo 'export PATH=$HOME/bin:$PATH' >> ~/.bash_profile
16## Linux
17echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
18
19# Run Command
20kubectl version --short --client
21
22
Created on 7/9/2018