Installing kubectl as a pre-requisite

Kubectl is a pre-requisite to provision applications to Kubernetes. It needs to be installed before the installation can begin.

Installing kubectl

The recommended installation is to download the latest binary from the Helm homepage and put it into the user’s ~/bin directory.

The installation guide is available in the Kubernetes tools installation guide.

Optional installation steps for kubectl

Add the following snippet to the file ~/.bashrc to allow auto-completion of commands:

source <(kubectl completion bash)

Verifying the installation of kubectl

The command:

kubectl --help

Should print an output like:

kubectl controls the Kubernetes cluster manager.
...