1: Download the latest release with the command:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
2: Validate the binary
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
3: Validate the kubectl binary against the checksum file:
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
4: Install kubectl:
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Note: 5: If you do not have root access on the target system, you can still install kubectl to the ~/.local/bin directory:
chmod +x kubectl
mkdir -p ~/.local/bin
mv ./kubectl ~/.local/bin/kubectl
kubectl version --client
snap install aws-cli --classic
4:Configure AWS CLI
aws configure
: Log In Into EKS cluster
aws eks update-kubeconfig --name <clustername>
##eks
aws eks update-kubeconfig --region ap-south-1 --name cluster ** to get cluster info
kubectl cluster-info
aws eks update-kubeconfig