Cannot access Kubernetes Control Panel

i followed this guide with the link to install the kubernetes cluster, and I have no error, but I canโ€™t access the Kubernet-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 there is nothing there

How can I access the control panel?

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 
+5
source share
5 answers

192.168.0.0/16 is a private range of IP addresses, which means that you need to be on the cluster network to access it.

The easiest way to access your service outside the cluster is to run kubectl proxy , which will forward requests to your local port 8001 to the Kubernetes API server. From there, apiserver can proxy to your service:

HTTP: // local: 8001 / API / v1 / proxy / namespace / Kube-system / services / kubernetes-panel

+5
source

I know this is an old question, but we spent several hours looking for a solution. It was so stupid ... Send it here for the following visitors ...

When you start the proxy server and view 127.0.0.1:8080/ui/, you are redirected to the following URL:

http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy

This url in our case opens like a white blank screen. The problem is that there is no slash in this url. When added, something works like a charm ... :(

http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/

+3
source

To actually find the pod with the control panel, you have to run

kubectl get pods --all-namespaces --show-all

or

kubectl get pods --namespace=kube-system

From what we see on your exits, you can either run kubectl proxy (already described) or just go to http://{any_node}:31785 .

You have a service panel with Type: NodePort , which means that it will be available on NodePort in any node in this cluster.

0
source

In fact, it does not work. If that were the case, your โ€œget deploymentโ€ results would return 1 instead of 0.

try kubectl describe deployment kubernetes-dashboard --namespace=kube-system This will be the first step for troubleshooting. at the end of the results, he may have something in these events.

you may need to know which logs for the module also depend on the results of your deployment request.

0
source

Using:

 kubectl proxy 

That will allow you to access the toolbar at:

 localhost:8001 
0
source

Source: https://habr.com/ru/post/1263932/


All Articles