Steps to Install Kubectl & eksctl on Ubuntu 20.04

Kubectl is a kubernetes command line tool. It helps to run command against Kubernetes clusters. Using kubctl we can deploy application,manage cluster resources, inspect and view logs.

Eksctl is also similar to kubectl and a command line tool which is used to create & managing kubenetes cluster.

There are few steps to install kubectl & eksctl on ubuntu:

Install Kubectl

Step 1: Update the system.

apt-get update

Step 2: Install Kubectl.

curl -o kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl

Step 3: Check the SHA-256 checksum.

openssl sha1 -sha256 kubectl

Step 4: Provide the following permission.

chmod +x ./kubectl

Step 5: Create a bin folder under $HOME,Copy the downloaded kubectl folder to $HOME/bin/  & export the path.

mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin

Step 6: Check the kubctl version.

kubectl version

Install Eksctl

Step 1: Update the System.

apt-get update

Step 2: Install eksctl.

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

Step 3: move the downloaded eksctl folder to /usr/local/bin.

mv /tmp/eksctl /usr/local/bin

Step 4: Ckeck the eksctl version.

eksctl version

 

Leave a Reply

Your email address will not be published.