Kubernetes-Dashboard Pod is not working once we install using HELM

4/29/2019

Kubernetes-Dashboard pod is not working once we install using HELM on GKE. Can some one helm on this and how we can able to access the dashboard from external

kubectl get po --all-namespaces

NAMESPACE default

NAME dashboard-demo-kubernetes-dashboard-6586b59d57-dxj6p

Ready: 0/1 CrashLoopBackOff 11 36m

Please find the below logs:

  1. Synchronizer kubernetes-dashboard-key-holder-kube-system exited with error: kubernetes-dashboard-key-holder-kube-system watch ended with timeout

  2. panic: secrets is forbidden: User "system:serviceaccount:default:dashboard-demo-kubernetes-dashboard" cannot create secrets in the namespace "kube-system"

-- Harish
google-kubernetes-engine
kubernetes-helm

1 Answer

4/29/2019

It's permission issue to create a namespace and secret inside the cluster. You can use CRD (Custom resource definition) for the creation of service account and assign it.

kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard

also you can find more at access control of dashboard at here github official helm chart : https://github.com/kubernetes/dashboard/wiki/Access-control

-- Harsh Manvar
Source: StackOverflow