Our team was trying to fix some issues with the Kubernetes dashboard because it couldn’t get a secret. We are using dashboard version 1.8.3 and the Kubernetes server version is version 1.9.
In order to check if it was an issue that could be solved by reinstalling the dashboard, I ran the command
kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml
Then the command
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml
However, I ended up being unable to recreate the Kubernetes pod. I'm not sure why the deployment refuses to generate the values. Here is the output from
kubectl describe deployment kubernetes-dashboard -n kube-system
showing that there is one replica desired but none created.
Name: kubernetes-dashboard
Namespace: kube-system
CreationTimestamp: <hidden>
Labels: addonmanager.kubernetes.io/mode=Reconcile
k8s-app=kubernetes-dashboard
kubernetes.io/cluster-service=true
Annotations: Selector: k8s-app=kubernetes-dashboard
Replicas: 1 desired | 0 updated | 0 total | 0 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: k8s-app=kubernetes-dashboard
Service Account: kubernetes-dashboard
Containers:
kubernetes-dashboard:
Image: k8s-gcrio.azureedge.net/kubernetes-dashboard-amd64:v1.8.3
Port: 8443/TCP
Host Port: 0/TCP
Args:
--auto-generate-certificates
--heapster-host=http://heapster.kube-system:80
Limits:
cpu: 500m
memory: 500Mi
Requests:
cpu: 300m
memory: 150Mi
Liveness: http-get https://:8443/ delay=30s timeout=30s period=10s #success=1 #failure=3
Environment: <none>
Mounts:
/certs from kubernetes-dashboard-certs (rw)
Volumes:
kubernetes-dashboard-certs:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
OldReplicaSets: <none>
NewReplicaSet: <none>
Events: <none>
How do I create the pod and have the dashboard working again?
Update: I found out that we created the dashboard in a namespace called "kubernetes-dashboard" so I deleted everything associated with the kubernetes-dashboard namespace. However, the dashboard is still not being created by the deployment.
I also found out that the issue appears to be that any replica set or deployment that is supposed to create a pod isn't creating pods when they should. Is there any information I could send to get some help for this issue?