Install Kubernetes Tools

Creating kubernetes cluster using kops require kubectl, kops and kubelet binaries and aws-cli

In this workshop we will give you the commands to download the Linux binaries.

Install kubectl:

sudo curl --silent --location -o /usr/local/bin/kubectl

sudo chmod +x /usr/local/bin/kubectl

Install kops:


chmod +x kops-linux-amd64

sudo mv kops-linux-amd64 /usr/local/bin/kops

Install JQ and envsubst:

sudo yum -y install jq gettext

Verify the binaries are in the path and executable:

for command in kubectl kops jq envsubst
    which $command &>/dev/null && echo "$command in path" || echo "$command NOT FOUND"

Enable bash_completion for kubectl and kops:

kubectl completion bash >> ~/.bash_completion
kops completion bash >> ~/.bash_completion