我正在使用helm 3安装Kubernetes dashboard,遵循docs,但得到以下错误:
[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)我应该怎么做才能解决这个问题?
发布于 2020-07-11 00:42:26
该图表是旧的,安装了1.x版本的kubernetes仪表板。
在docs here中,使用以下命令安装最新的Kubernetes仪表板版本2.x
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发布于 2020-07-11 03:36:34
Arghya提到的图表是使用这段时间的必备工具。
除了他的回答,我还想提到关于Helm版本的自定义值的非常重要的信息:
#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。
https://stackoverflow.com/questions/62838711
复制相似问题