There are several ways to install and use the gcloud command line tool. This tool sends commands to Google Cloud and lets you do things like create and delete clusters.
Two ways of installing gcloud:
- Go to the `gcloud command line tool downloads page <https://cloud.google.com/sdk/downloads>`_ to **download and install the gcloud command line tool**. - See the `gcloud documentation <https://cloud.google.com/pubsub/docs/quickstart-cli>`_ for more information on the gcloud command line tool.
Next install kubectl, which is a tool for controlling kubernetes. From the terminal, enter:
kubectl
gcloud components install kubectl
IMPORTANT: you must close and reopen the terminal after installing gcloud command line tool for it to recognize the gcloud command that you need to install kubernetes locally.
The simplest way to install helm is to run Helm’s installer script at a terminal:
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
Alternative methods for helm installation exist if you prefer to install without using the script.
Once you have installed help, close and reopen your terminal window for it to be properly recognized. Then, you can verify that you have the correct version and that helm installed properly by running:
helm version
It should provide output like:
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Done.