Reputation: 443
Can any one help me understanding this error I am getting while trying to set-up kubernetes. I am trying to follow this url and run the command
$ curl -sS https://get.k8s.io | bash
ERROR: (gcloud.components.update) The component manager is disabled for this installation
Adding the complete error ( Ubunut 15.4), after full blown google sdk installation ............. Unpacking kubernetes release v1.0.3 Creating a kubernetes on gce... Starting cluster using provider: gce ... calling verify-prereqs You cannot perform this action because the component manager has been disabled for this installation. If you would like get the latest version of the Google Cloud SDK, please see our main download page at:
https://developers.google.com/cloud/sdk/
ERROR: (gcloud.components.update) The component manager is disabled for this installation You cannot perform this action because the component manager has been disabled for this installation. If you would like get the latest version of the Google Cloud SDK, please see our main download page at:
https://developers.google.com/cloud/sdk/
ERROR: (gcloud.components.update) The component manager is disabled for this installation You cannot perform this action because the component manager has been disabled for this installation. If you would like get the latest version of the Google Cloud SDK, please see our main download page at:
https://developers.google.com/cloud/sdk/
ERROR: (gcloud.components.update) The component manager is disabled for this installation ... calling kube-up
Upvotes: 9
Views: 4581
Reputation: 3670
The latest Google SDK package manager installs:
https://cloud.google.com/sdk/downloads#apt-get
https://cloud.google.com/sdk/downloads#yum
now support installing kubectl "directly" from the repo:
sudo apt install kubectl
sudo yum install kubectl
Upvotes: 0
Reputation: 1614
The problem is that some ubuntu (and others) distro come with the google cloud SDK installed through the local package manager, but it doesn't contain everything. kubectl for example is missing as seen with this command:
gcloud components list
when you try to add the needed component for Kubernetes with:
gcloud components install kubectl
you end up with this error:
ERROR: (gcloud.components.update) The component manager is disabled for this installation
It is a known issue on the Google Cloud SDK issue tracker : Issue 336: kubectl not installed by google-cloud-sdk debian package, and not installable
Unfortunately, it provides a poor experience for first timer testing kubernetes as it's hard to find a quick AND CLEAN step by step solution.
Here is one:
sudo apt-get update
sudo apt-get remove google-cloud-sdk
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init
gcloud components list
gcloud components install kubectl
gcloud components list
this last command should show kubectl installed and everything up to date.
Upvotes: 32
Reputation: 1594
Get yourself a full-blown Cloud SDK installation:
$ curl -sSL https://sdk.cloud.google.com | bash -
And follow instructions. Don't forget to remove old binaries to prevent clashes (script will warn you towards the end of the install). Then, proceed with Kubernetes setup again.
Upvotes: 6