Dashboard: Problems with first login on kubernetes dashboard

Created on 22 Jun 2019  路  2Comments  路  Source: kubernetes/dashboard

Environment
Installation method: kubeadm
Kubernetes version: 1.14.3
Dashboard version: 1.10.1
Operating system: Debian 9.9.0
Steps to reproduce

Install

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/influxdb.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml

Setup the admin-user (following the wiki: https://github.com/kubernetes/dashboard/wiki/Creating-sample-user)

vim dashboard-adminuser.yaml

apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kube-system

vim dashboard-admin-binding.yaml

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kube-system

Apply user config:

kubectl apply -f dashboard-adminuser.yaml
apply -f dashboard-admin-binding.yaml

Get the token
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

Setup proxy for external hosts (because this runs on a server without GUI)
kubectl proxy --address 0.0.0.0 --accept-hosts='^.*$'

Observed result


image

But the sign in button doesn't do anything...
Also I don't see a skip button like in the wiki!

Expected result

Possible to sign in an see the dashboard!
Also do I need to use this token everytime to login? Or is this only the first time?

Comments

I am not yet an export with kubernetes (still learning). This is the first cluster I am setting up! For now only 1 node (master node), and when this works properly I will add two extra nodes

kinbug

All 2 comments

Check similar issues. Also it is described in the wiki why it does not work.

/close

@floreks: Closing this issue.

In response to this:

Check similar issues. It is described in the wiki why it does not work.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dzoeteman picture dzoeteman  路  4Comments

kasunsjc picture kasunsjc  路  3Comments

lukmanulhakimd picture lukmanulhakimd  路  4Comments

mhobotpplnet picture mhobotpplnet  路  3Comments

maciaszczykm picture maciaszczykm  路  3Comments