Summary
The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.
This tutorial will guide you through the installation and configuration of this tool on Linux.
Installation Steps:
Download the Amazon EKS vended kubectl from AWS. To download the Arm version, change amd64 to arm64 before running the command.
$ curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl
Add execute permission to the binary.
$ chmod +x ./kubectl
Add the binary to the search path.
$ mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
Verify the version with the following command:
$ kubectl version --short --client
Client Version: v1.21.2-13+d2965f0db10712
Top comments (0)