Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't access kubernetes Dashboard

i followed this guide link to install a kubernetes cluster and i have no error, but i can't access kubernetes-Dashboard

I did kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml and when i go to https://192.168.11.20/ui is nothing there

how can i access the dashboard?

some additional information

[root@kubeMaster ~]# kubectl get nodes
NAME        STATUS    AGE
kubenode1   Ready     6h
kubenode2   Ready     6h

[root@kubeMaster ~]# kubectl get pods
No resources found.

[root@kubeMaster ~]# kubectl describe svc kubernetes-dashboard --namespace=kube-system
Name:           kubernetes-dashboard
Namespace:      kube-system
Labels:         app=kubernetes-dashboard
Selector:       app=kubernetes-dashboard
Type:           NodePort
IP:         10.254.81.213
Port:           <unset> 80/TCP
NodePort:       <unset> 31785/TCP
Endpoints:      <none>
Session Affinity:   None
No events.

[root@kubeMaster ~]# kubectl get deployment kubernetes-dashboard --namespace=kube-system
NAME                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
kubernetes-dashboard   1         0         0            0           6h

[root@kubeMaster ~]# kubectl --namespace=kube-system get ep kubernetes-dashboard
NAME                   ENDPOINTS   AGE
kubernetes-dashboard   <none>      6h

[root@kubeMaster ~]# kubectl cluster-info
Kubernetes master is running at http://kubeMaster:8080

[root@kubeMaster ~]# kubectl get ns
NAME          STATUS    AGE
default       Active    6h
kube-system   Active    6h

[root@kubeMaster ~]# kubectl get ep
NAME         ENDPOINTS            AGE
kubernetes   192.168.11.20:6443   6h
like image 513
Hugo Avatar asked Feb 07 '17 18:02

Hugo


People also ask

How do I access Kubernetes Dashboard?

To access the dashboard endpoint, open the following link with a web browser: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login . Choose Token, paste the authentication-token output from the previous command into the Token field, and choose SIGN IN.

How do I access Kubernetes Dashboard externally?

Ans: In a terminal window, enter kubectl proxy to make the Kubernetes Dashboard available. Open a browser and go to http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes–dashboard:/proxy/#!/login to display the Kubernetes Dashboard that was deployed when the cluster was created.

How do I access AKS cluster Dashboard?

To see the Kubernetes resources, navigate to your AKS cluster in the Azure portal. The navigation pane on the left is used to access your resources. The resources include: Namespaces displays the namespaces of your cluster.


1 Answers

Use:

kubectl proxy

Which will let you access the dashboard at:

localhost:8001
like image 135
DominikHelps Avatar answered Sep 27 '22 20:09

DominikHelps