What is the Kubernetes version? Is it >1.8 ? (which has RBAC enabled by default).
The error message says that the Kubernetes Dashboard service account is not allowed to list configmaps in default namespace. RBAC by default is deny-all. You need to explicitly grant permissions.
You can create the following
ClusterRoleBinding to grant dashboard full admin privileges.
- kind: ServiceAccount
Save the above block into
dashboard-rolebinding.yaml and create it on the cluster:
kubectl create -f dashboard-rolebinding.yaml
IMPORTANT: Make sure your dashboard is secured from outside before doing this. Otherwise anyone can have complete access to your cluster. Here is a great article about securing kubernetes dashboard, from Heptio: https://blog.heptio.com/on-securing-the-kubernetes-dashboard-16b09b1b7aca writted by Joe Beda himself.