Reputation: 1324
I'm trying to spin up a Kubernetes (k8s) cluster on GCE. When I run
gcloud components update kubectl
on a Windows machine I get
ERROR: (gcloud.components.update) The following components are unknown [kubectl]
Upvotes: 3
Views: 3122
Reputation: 776
Things have changed a little (don't they always).
This just worked for me..
gcloud components install kubectl
Upvotes: 0
Reputation: 18200
Update (May 2016): As of late March 2016, gcloud will now install kubectl for windows.
gcloud won't currently install kubectl on windows (hence the error). You can download a recent kubectl binary directly from GCS instead (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 on Mac/Linux, you may need to pass the --kubeconfig
argument if it isn't finding your configuration file in the default location (gcloud container clusters get-credentials NAME
should write to .kube/config
in your home directory and kubectl should read from the same file).
Upvotes: 13