Web UI Dashboard https kubernetes io docs tasks access-application-cluster web-ui-dashboard

+6 votes

Hello,

          I am trying to install and configure the webUI on one of my Ubuntu 16.04.5 LTS (Xenial Xerus) virtual machine. These are the things which I have already installed and configured and which is working for me minikube version: v0.23.0, kubectl version is as mentioned here:

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", GitTreeState:"clean", BuildDate:"2017-11-29T22:43:34Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}

and my docker version is

Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.6.2
 Git commit:   f5ec1e2
 Built:        Thu Jul  5 23:07:48 2018
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.2-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.6.2
 Git commit:   f5ec1e2
 Built:        Thu Jul  5 23:07:48 2018
 OS/Arch:      linux/amd64
 Experimental: false

The result of minikube status is as mentioned here

root@server1:/home/eduuser# minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 127.0.0.1


root@server1:/home/eduuser# minikube addons list
- coredns: disabled
- registry: disabled
- registry-creds: disabled
- dashboard: enabled
- default-storageclass: enabled
- heapster: disabled
- ingress: disabled
- addon-manager: enabled
- kube-dns: enabled

root@server1:/home/eduuser# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:2379          0.0.0.0:*               LISTEN      727/localkube   
tcp        0      0 127.0.0.1:2380          0.0.0.0:*               LISTEN      727/localkube   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1186/sshd       
tcp        0      0 127.0.0.1:10248         0.0.0.0:*               LISTEN      727/localkube   
tcp6       0      0 :::10250                :::*                    LISTEN      727/localkube   
tcp6       0      0 :::10251                :::*                    LISTEN      727/localkube   
tcp6       0      0 :::10252                :::*                    LISTEN      727/localkube   
tcp6       0      0 :::10255                :::*                    LISTEN      727/localkube   
tcp6       0      0 :::22                   :::*                    LISTEN      1186/sshd       
tcp6       0      0 :::8443                 :::*                    LISTEN      727/localkube   
tcp6       0      0 :::4194                 :::*                    LISTEN      727/localkube

I am able to access cAdvisior on http://192.168.3.104:4194/containers/. When I try this on cli I get an error message which is as mentioned here.

root@server1:/home/eduuser# kubectl get pod
Error from server (NotAcceptable): unknown (get pods)

root@bhakub1:/home/eduuser# kubectl get nodes
Error from server (NotAcceptable): unknown (get nodes)

but the same I am able to view using

http://192.168.3.104:4194/docker/ which are here.

k8s_POD_kube-addon-manager-server1.com_kube-system... (/kubepods/burstable/pod7b19c3ba446df5355649563d32723e4f/2973882a791e3e3be944a5f3c5b4845aa82e967b9730720a112a4ffbb0085312)

k8s_kube-addon-manager_kube-addon-manager-server1.... (/kubepods/burstable/pod7b19c3ba446df5355649563d32723e4f/b26e08087ec2006d9c75bce7f219d77a3af908a88b6c60134fab6f8fce11fc77)

k8s_POD_kubernetes-dashboard-5dd6b98c69-sxl5q_kube... (/kubepods/besteffort/pode82af1c6-fdda-11e8-86a7-525400231b56/0b3d934381a2cb66dacf0adb82124003fd70b13517e5dc21aab2a165e2f8617e)

These are the most recent minikube logs

Dec 13 12:03:39 server1.com localkube[727]: I1213 12:03:39.046719     727 kuberuntime_manager.go:748] Back-off 5m0s restarting failed container=kubernetes-dashboard pod=kubernetes-dashboard-5dd6b98c69-sxl5q_kube-system(e82af1c6-fdda-11e8-86a7-525400231b56)
Dec 13 12:03:39 server1.com localkube[727]: E1213 12:03:39.046805     727 pod_workers.go:182] Error syncing pod e82af1c6-fdda-11e8-86a7-525400231b56 ("kubernetes-dashboard-5dd6b98c69-sxl5q_kube-system(e82af1c6-fdda-11e8-86a7-525400231b56)"), skipping: failed to "StartContainer" for "kubernetes-dashboard" with CrashLoopBackOff: "Back-off 5m0s restarting failed container=kubernetes-dashboard pod=kubernetes-dashboard-5dd6b98c69-sxl5q_kube-system(e82af1c6-fdda-11e8-86a7-525400231b56)"

          I would like to install and configure my kubernetes dashboard to get an overview of applications running on your cluster, as well as for creating or modifying individual Kubernetes resources (such as Deployments, Jobs, DaemonSets, etc) as mentioned in the link above. Please help!

Dec 13, 2018 in Kubernetes by nmentityvibes
• 420 points
7,941 views

1 answer to this question.

0 votes

Hey @nmentityvibes, you seem to be using kubectl version 1.13.0 and 1.8.0. There is some compatibility issue with these versions. Try downgrading them to 1.10.5 or 1.8.7. 

A similar issue was reported on github.

answered Dec 13, 2018 by Kalgi
• 52,350 points

Related Questions In Kubernetes

+1 vote
1 answer

Unable to access kubernetes dashboard

You’re trying to access a private IP. ...READ MORE

answered Aug 27, 2018 in Kubernetes by Kalgi
• 52,350 points
2,955 views
0 votes
1 answer

Deepstream.io on Kubernetes cluster

Kompose doesn’t support host volume mounting. Instead ...READ MORE

answered Sep 3, 2018 in Kubernetes by Kalgi
• 52,350 points
1,502 views
0 votes
1 answer

Not able to access the kubernetes dashboard

Have you executed this proxy command? kubectl proxy Try ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
1,626 views
0 votes
1 answer
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,484 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,039 views
+1 vote
2 answers

Accessing Kubernetes Web UI (Dashboard)

To access Kubernetes dashboard, you need to ...READ MORE

answered Apr 16, 2019 in Kubernetes by Ray
2,362 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,350 points

reshown Apr 12, 2019 by Kalgi 7,150 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP