Failed to install kubectl on Google Compute Engine (GCE)?

I am trying to deploy a Kubernetes (k8s) cluster on GCE. When I ran

gcloud components update kubectl

      

on windows machine i get

ERROR: (gcloud.components.update) The following components are unknown [kubectl]

+3


source to share


2 answers


Update (May 2016): Starting at the end of March 2016, gcloud will now install kubectl for windows.




gcloud will not currently install kubectl on windows (hence the bug). You can download the recent kubectl binary directly from GCS ( gsutil cp gs://kubernetes-release/release/v1.0.0/bin/windows/amd64/kubectl.exe kubectl.exe

).

Since kubectl is much less heavily tested on windows than it is on Mac / Linux, you may need to pass an argument --kubeconfig

if it doesn't find your config file in the default location ( gcloud container clusters get-credentials NAME

must write to .kube/config

in your home directory and kubectl must read from the same file ).

+12


source


Things have changed a little (not always).

It just worked for me ..



gcloud components install kubectl

      

0


source







All Articles