Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes set-up on ubuntu on Google compute

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

I am running the command on google compute Ubuntu machine. Appreciate any help

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

like image 547
user1687711 Avatar asked Aug 16 '15 15:08

user1687711


People also ask

Can I run Kubernetes on Ubuntu?

You technically can install Kubernetes on a single node, it's not recommended. Separating nodes provides fault tolerance and high availability. The Ubuntu hosts the tutorial uses will be called MASTER using an IP address of 10.0. 0.200 for the master node and WORKER for the worker node.

Does Google Cloud run Use Kubernetes?

Google's new Cloud Run service is a serverless platform built on Knative, the runtime environment that extends Kubernetes for serverless workloads, and the Functions Framework, which Google is also open sourcing for Node. js 10 today.


1 Answers

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.

like image 128
aregnier Avatar answered Nov 03 '22 20:11

aregnier