Kubectl Installation
Kubectl is available in the distribution package managers,
sudo apt-get install kubernetes-client
If you want the latest version you can install it manually.
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(\
curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt\
)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl ~/.local/bin/kubectl
Configure kubectl⚑
Set editor⚑
# File ~/.bashrc
KUBE_EDITOR="vim"
Set auto completion⚑
# File ~/.bashrc
source <(kubectl completion bash)
Configure EKS cluster⚑
To configure the access to an existing cluster, we'll let aws-cli create the required files:
aws eks update-kubeconfig --name {{ cluster_name }}