找到你要的答案

Q:Kubernetes set-up on ubuntu on Google compute

Q:Kubernetes设置Ubuntu在谷歌计算

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

任何一个可以帮助我理解这个错误我已经在试图设置Kubernetes。我试图遵循这个URL和运行命令

$ curl -sS https://get.k8s.io | bash
错误:(Gcloud。组件。更新)组件管理器是安装禁用

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/

错误:(Gcloud。组件。更新)组件管理器是安装禁用 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/

错误:(Gcloud。组件。更新)组件管理器是安装禁用 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/

错误:(Gcloud。组件。更新)组件管理器是安装禁用 ... calling kube-up

answer1: 回答1:

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.

问题是,Ubuntu发行版(和其他人)来通过安装本地包经理谷歌云SDK,但是它不包含一切。kubectl例如丢失看到这个命令:

gcloud components list

当您尝试添加所需要的组件为Kubernetes:

gcloud components install kubectl

你最终会有这个错误:

错误:(Gcloud。组件。更新)组件管理器是安装禁用

它是在谷歌云SDK追踪已知问题:问题336:kubectl没有安装谷歌云SDK包,不安装

不幸的是,它提供了第一个计时器测试Kubernetes可怜的经验找到一步溶液快速清洁步骤是很难的。

这里是一:

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

这最后的命令应该显示kubectl安装最新的一切。

answer2: 回答2:

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.

让自己成熟的云SDK的安装:

卷发的SSL https://sdk.cloud.google.com | bash美元—

并遵循指示。不要忘记删除旧的二进制文件,以防止冲突(脚本会警告你结束安装)。然后,继续Kubernetes再次安装。

ubuntu  kubernetes