gcloud kubectl install

How to install kubectl with gcloud snippet for inclusion in each OS-specific tab.

You can install kubectl as part of the Google Cloud SDK.

  1. Install the Google Cloud SDK.

  2. Run the kubectl installation command:

    1. gcloud components install kubectl
  3. Test to ensure the version you installed is up-to-date:

    1. kubectl version --client