头盔安装Kubernetes Federation v2错误

时间:2019-01-25 09:29:15

标签: kubernetes kubernetes-helm

我尝试使用helm安装Kubernetes Federation v2,这受official documents的指示。但是,当我输入命令

$ helm install charts/federation-v2 --name federation-v2 --namespace federation-system

我收到一个错误消息,说Error: failed to download "charts/federation-v2" (hint: running帮助仓库更新may help)

头盔版本:

helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}

Kubernetes集群版本:

gcloud container clusters list
NAME      LOCATION           MASTER_VERSION  MASTER_IP      MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS
cluster2  asia-southeast1-a  1.11.6-gke.3    35.247.134.16  n1-standard-1  1.11.6-gke.3  3          RUNNING

有人以前遇到过同样的问题吗?或者有人可以给我一些关于这个问题的建议吗?

1 个答案:

答案 0 :(得分:0)

  

Error: failed to download "charts/federation-v2" (hint: runninghelm repo updatemay help)

通常,如果我从错误的目录运行掌舵,里面没有charts/federation-v2,就会看到该消息。

这应该有效:

$ helm init .... # add necessary security options* like service account or whatever

$ git clone https://github.com/kubernetes-sigs/federation-v2.git
$ cd federation-v2/

# check if everything works in dry-run
$ helm install charts/federation-v2 --name federation-v2 --namespace federation-system --debug --dry-run

# install the chart
$ helm install charts/federation-v2 --name federation-v2 --namespace federation-system