首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:下载kubernetes-dashboard失败(提示:运行`help repo update`可能会有所帮助)

错误:下载kubernetes-dashboard失败(提示:运行`help repo update`可能会有所帮助)
EN

Stack Overflow用户
提问于 2020-07-11 00:37:29
回答 2查看 980关注 0票数 0

我正在使用helm 3安装Kubernetes dashboard,遵循docs,但得到以下错误:

代码语言:javascript
复制
  [root@localhost ~]# helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
    [root@localhost ~]# helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "kubernetes-dashboard" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 
    [root@localhost ~]# helm install kubernetes-dashboard/kubernetes-dashboard kubernetes-dashboard
Error: failed to download "kubernetes-dashboard" (hint: running `helm repo update` may help)

我应该怎么做才能解决这个问题?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-07-11 00:42:26

该图表是旧的,安装了1.x版本的kubernetes仪表板。

在docs here中,使用以下命令安装最新的Kubernetes仪表板版本2.x

代码语言:javascript
复制
helm repo add k8s-dashboard https://kubernetes.github.io/dashboard
helm repo update
helm install dashboard-release k8s-dashboard/kubernetes-dashboard --version 2.2.0
票数 2
EN

Stack Overflow用户

发布于 2020-07-11 03:36:34

Arghya提到的图表是使用这段时间的必备工具。

除了他的回答,我还想提到关于Helm版本的自定义值的非常重要的信息:

代码语言:javascript
复制
#these are mine
rbac:
  clusterReadOnlyRole: true # <--- YOU NEED this one
  clusterAdminRole: false
extraArgs:
  - --enable-skip-login
  - --enable-insecure-login
  - --system-banner="Welcome to Company.com Kubernetes Cluster"

正如您所看到的,rbac.enabled是不够的,您还需要指定rbac.clusterReadOnlyRole=true,或者为了获得对仪表板的更多访问权限,将true设置为rbac.clusterAdminRole

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62838711

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档