Kubectl is a command-line tool for interacting with Kubernetes clusters.
-
Download the latest Kubectl binary:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -
Make the binary executable:
chmod +x kubectl
-
Move the binary to a directory in your PATH:
sudo mv kubectl /usr/local/bin/
-
Verify installation:
kubectl version --client