Reputation: 38985
I am installing Kubernetes dashboard using helm 3 following the docs but getting below error:
[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)
what should I do to fix this?
Upvotes: 1
Views: 2424
Reputation: 44657
That chart is old and installs 1.x version of kubernetes dashboard.
From docs here use below command to install latest Kubernetes dashboard version 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
Upvotes: 3
Reputation: 93481
The chart mentioned by Arghya is a must to use this period.
Alongside his answer, I want to mention very important info about the custom values of the Helm release :
#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"
As you can see rbac.enabled
is not enough, you need to specify also rbac.clusterReadOnlyRole=true
or to give more access to the Dashboard, set true to rbac.clusterAdminRole
.
Upvotes: 2