V
V
Viktor2020-02-07 09:23:21
Kubernetes
Viktor, 2020-02-07 09:23:21

Well, I can log in to the kubernetes-dashboard, how can I diagnose why?

Good afternoon.
I took another manual for creating kubernes
assembled virtual machines 4 k8s-master-01.02 and k8s-worker-01.02
virtual machines deployed calico and kubernetes-dashboard
created a user, launched a proxy, I get into the initial authorization form and enter a token from the user and no no response, stay on the same screen.

5e3d020b5ef9a950414250.png
5e3d0354acfcd603474781.jpeg

5e3d048b3e64e479254650.jpeg

logs for
[email protected]:/var/lib/containerd# kubectl logs -f kubernetes-dashboard-5996555fd8-xmkrl -n kubernetes-dashboard
show nothing intelligible
2020/02/06 07:59:43 Getting application global configuration
2020/02/06 07:59:43 Application configuration {"serverTime":1580975983645}
2020/02/06 07:59:43 [2020-02-06T07:59:43Z] Incoming HTTP/2.0 GET /api/v1/settings/global/cani request from 192.168.151.128:51162:
2020/02/06 07 :59:43 [2020-02-06T07:59:43Z] Outcoming response to 192.168.151.128:51162 with 200 status code

suspicion that I'm not creating a user with admin rights
kubectl create serviceaccount dashboard -n default
kubectl create clusterrolebinding dashboard-admin -n default --clusterrole=cluster-admin -serviceaccount=default:dashboard
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep default | awk '{print $1}')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shatokhin, 2020-02-27
@Sovigod

As I remember, there is an error in the kubernetes/dashboard installation documentation. Now you can only log in to the dashboard using https. It has recently become mandatory. And kubectl proxy with https did not work well before. The easiest way is to access it through the ingress controller. And don't forget the https annotations for the backend.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question