Here, we install Kubernetes client on the host machine, so that a system user can connect and operate the Kubernetes cluster. Later, we have to create a Kubernetes user with proper credentials to operate the Kubernetes cluster using the installed client.
# Add Kubernetes official GPG key to package manager.
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Add Kubernetes repository to package manager source list.
$ echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
# Check for package updates.
$ sudo apt update
# Install Kubernetes client package from repository.
$ sudo apt install kubectl
# Check Kubernetes client version.
$ kubectl version --client