kubectl
is Kubernetes command line tool. It allows you to run commands against Kubernetes cluster. kubectl
is gateway to you cluster, allowing you to inspect, create, delete, and manipulate your resources in other ways.
Download the latest version:
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
Add it to your PATH:
sudo mv kubectl /usr/local/bin/kubectl
Make it executable:
sudo chmod +x /usr/local/bin/kubectl
Finally, check if it works:
kubectl version --client