Bootstrap FreeKB - Kubernetes - Install the kubectl CLI on Linux
Kubernetes - Install the kubectl CLI on Linux

Updated:   |  Kubernetes articles

On a Linux system, the following curl command can be used to download the latest stable version of kubectl to your present working directory.

  curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

 

Let's update the kubectl CLI to be executable.

chmod +x ./kubectl

 

And move the kubectl CLI into your /usr/local/bin directory.

sudo mv ./kubectl /usr/local/bin/kubectl

 

And verify the kubectl CLI is working properly.

~]$ kubectl version
Client Version: v1.34.2
Kustomize Version: v5.7.1
Server Version: v1.34.0

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 13a152 in the box below so that we can be sure you are a human.