
Kubectl is the Kubernetes command-line too that allow you to interact with Kubernetes Clusters.
To install kubectl on Ubuntu only a couple of steps are needed.
Option 1, Via repositories:
sudo apt-get update && sudo apt-get install -y apt-transport-https gnupg2 curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
Option 2, using snap:
snap install kubectl --classic
Once all the steps are run, kubectl can be verified with:
kubectl version --client