Kubernetes dashboard the server could not find the requested resource

11/17/2019

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 '[^ ]\+
#x27;

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.

-- zero_coding
kubernetes
kubespray

1 Answer

12/10/2019

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
-- Samuel Santana
Source: StackOverflow