2
votes

I have installed the kubernetes cluster with https://github.com/kubernetes-sigs/kubespray with vagrant. The installation was successful.

Next I would like to call the dashboard and generate the dashboard token as follows:

kubectl -n kube-system describe secret kubernetes-dashboard-token | grep 'token:' | grep -o '[^ ]\+$'

I've got the token and with kubectl proxy statement, it starts the dashboard service.

Then calling the url http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login and enter the token, after then I've got:

enter image description here

What am I doing wrong?

This should be the solution: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#default-nic-when-using-flannel-as-the-pod-network-in-vagrant

What do not know, how to solve.

1
Have you tried checking if flannel is working? You can also check kubectl get all --all-namespaces to see if all pods are up.Crou
I am facing the same problem... I am using calico as this is default in kubespray. If I do kubectl get all --all-namespaces I see all resources in a proper RUNNING stateJürgen Zornig
Have you managed to make it work using the info from comments and the answer?Wytrzymały Wiktor
@softshipper Have you managed to find solution ?Malgorzata

1 Answers

0
votes

I faced the same problem!

  1. Check if the proxy is started: kubectl proxy
  2. Update the version DashBoard: from v1.10.0 to v2.0.0-beta4
  3. Check if the NodePort is in the same dashboard's namespace