Skip to content

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 "$(\
  curl -s\
chmod +x kubectl
mv kubectl ~/.local/bin/kubectl

Configure kubectl

Set editor

# File ~/.bashrc

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 }}