Unable to get kubernetes dashboard

4/13/2019

I've installad a new cluster (version 1.13.5 of kubectl kubelet kubeadm), then I've installed flannel and add a worker node. Now I'm trying to add kubernetes dashboard to my cluster but after i run

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

I've this situation

kubernetes-dashboard-****   0/1     CrashLoopBackOff   1          8s

Then if I get the log i can see this

 Error while initializing connection to Kubernetes apiserver...

Where I'm wrong?

-- Manuel Castro
flannel
kubernetes
kubernetes-dashboard

2 Answers

4/13/2019

Check api-server pod is running or not and KubeDNS is working fine or not.

-- Rishabh Rai
Source: StackOverflow

4/15/2019

It seems that the problem was on the worker, when I put the dashboard on master the pod starts. Maybe the kube dashboard has to be installed on the master or there is something wrong with flannel and the master-node communication.

-- Manuel Castro
Source: StackOverflow