Kubernetes Dashboard: Unable to display Deployments / Pods

5/25/2020

Kubernetes Dashboard: Unable to display Deployments / Pods

I am new in Kubernetes, trying my best to describe the issue that I am facing, any help would be very appreciated.

Any missing configuration that you can think of and how to verify and correct in order to have the dashboard displaying deployment and pods ?

I use these 2 links https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md to create the kubernetes dashboard.

I use a laptop with Windows 10 Pro. Use docker desktop community version 2.3.1.0, Channel Edge (with Kubernetes in docker desktop) Kubectl version:

C:\Sandbox\tmp> kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d
9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler
:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.6-beta.0", GitCommit:"e7f962ba86f4ce
7033828210ca3556393c377bcc", GitTreeState:"clean", BuildDate:"2020-01-15T08:18:29Z", GoVersion:"go1.13.5", 
Compiler:"gc", Platform:"linux/amd64"} 

Use Window PowerShell ISE (run as admin) to type kubectl commands

With Google Chrome, I can login the dashboard but can not see the deployment and pods. Message: No resources found

I created Kuard deployment with 3 Pods in the default namespace, and also have the dashboard-metrics-scraper in the kubernetes-dashboard namespace. All of them in Ready state as shown:

 C:\Sandbox\tmp> kubectl get deployments -A
NAMESPACE              NAME                        READY   UP-TO-DATE   AVAILABLE   AGE
default                kuard                       3/3     3            3           6s
docker                 compose                     1/1     1            1           4d2h
docker                 compose-api                 1/1     1            1           4d2h
kube-system            coredns                     2/2     2            2           4d2h
kubernetes-dashboard   dashboard-metrics-scraper   1/1     1            1           2d21h
kubernetes-dashboard   kubernetes-dashboard        1/1     1            1           2d21h

C:\Sandbox\tmp> kubectl get deployments -o wide 
NAME    READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS   IMAGES                              SELECTOR
kuard   3/3     3            3           23s   kuard        gcr.io/kuar-demo/kuard-amd64:blue   run=kuard

 C:\Sandbox\tmp> kubectl get pods -o wide
NAME                     READY   STATUS    RESTARTS   AGE   IP           NODE             NOMINATED NODE   READINESS GATES
kuard-65c78f8d5f-mb8pc   1/1     Running   0          45s   10.1.1.113   docker-desktop   <none>           <none>
kuard-65c78f8d5f-ng87n   1/1     Running   0          45s   10.1.1.111   docker-desktop   <none>           <none>
kuard-65c78f8d5f-s2mxk   1/1     Running   0          45s   10.1.1.112   docker-desktop   <none>           <none> 

Any missing configuration that you can think of and how to verify and correct in order to have the dashboard displaying deployment and pods ?

-- stan
dashboard
kubernetes

0 Answers