dashboard: 503 ServiceUnavailable
Issue details
I am new to kubernetes and I am trying to set up a basic 2 machine cluster.
The kubernetes-dashboard pod status is listed as pending with 0/1 ready, which is likely the underlying issue. I have no clue where to begin solving this problem. The ultimate result is that I receive 503 ServiceUnavailable in the browser.
Please do not:
- recommend using a hosted solution.
- recommend minikube.
- recommend reading https://github.com/kubernetes/dashboard/issues/971 - I have already been through it, and my problem persists.
Environment
Dashboard version:
kubernetes-dashboard-amd64:v1.4.0 per https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
Kubernetes version:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Operating system: CentOS 7
Steps to reproduce
- Followed getting started at: http://kubernetes.io/docs/getting-started-guides/kubeadm/
a) Created 2 Centos 7.0 VMs on XenServer 7.0 (kube-node-0[master] andkube-node-1) - installed xauth, xhost, firefox on
kube-node-0 - ran
kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yamlonkube-node-0 - ran
kubectl proxy &onkube-node-0 - ran
firefox &onkube-node-0 - navigated to https://localhost/ui
- navigated to http://localhost:8001/ui
a) 301 redirected to http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kubernertes-dashboard
Observed result
http response message to https://localhost/ui
401 Unauthorized
http response message to http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kubernertes-dashboard
{
"kind": "Status",
"apiVersion": "V1",
"metadata": {},
"status": "Failure",
"message": "no endpoints available for service \"kubernetes-dashboard\"",
"reason": "ServiceUnavalable",
"code": 503
}
Expected result
Dashboard UI
Comments
Below is the output of various commands that showed up in https://github.com/kubernetes/dashboard/issues/971
$ kubectl cluster-info
Kubernetes master is running at http://localhost:8080
kube-dns is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
dump file at: https://gist.github.com/kking124/85efed41c107cd84224204435d512632
$ kubectl get nodes
NAME STATUS AGE
kube-node-0 Ready 1h
kube-node-1 Ready 1h
$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system etcd-kube-node-0 1/1 Running 0 1h
kube-system kube-apiserver-kube-node-0 1/1 Running 0 1h
kube-system kube-controller-manager-kube-node-0 1/1 Running 0 1h
kube-system kube-discovery-982812725-273x4 1/1 Running 0 1h
kube-system kube-dns-2247936740-qymse 2/3 Running 1 1h
kube-system kube-proxy-amd64-8o5rr 1/1 Running 0 1h
kube-system kube-proxy-amd64-mg0ic 1/1 Running 0 1h
kube-system kube-scheduler-kube-node-0 1/1 Running 0 1h
kube-system kubernetes-dashboard-1655269645-ekxxs 0/1 Pending 0 52m
kube-system weave-net-9i5ce 2/2 Running 0 59m
kube-system weave-net-y9iu2 2/2 Running 0 59m
$ kubectl get pods
$ kubectl describe service kubernetes-dashboard --namespace=kube-system
Name: kubernetes-dashboard
Namespace: kube-system
Labels: app=kubernetes-dashboard
Selector: app=kubernetes-dashboard
Type: NodePort
IP: 100.73.132.23
Port: <unset> 80/TCP
NodePort: <unset> 30526/TCP
Endpoints: <none>
Session Affinity: None
$ kubectl --namespace=kube-system get ep kubernetes-dashboard
NAME ENDPOINTS AGE
kubernetes-dashboard <none> 1h
$ kubectl get svc kubernetes-dashboard --namespace=kube-system
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard 100.73.132.23 <nodes> 80/TCP 1h
$ kubectl get deployment kubernetes-dashboard --namespace=kube-system
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
kubernetes-dashboard 1 1 1 0 1h
$ kubectl logs kubernetes-dashboard-1655269645-ekxxs --namespace kube-system
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 30 (12 by maintainers)
I see this issue too with kubernetes
1.5.4and kubernetes-dashboard image versiongcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.0.I installed
kubeadmreferring https://kubernetes.io/docs/getting-started-guides/kubeadm/, and then installed kubernetes-dashboard by doingI see the kubernetes-dashboard in
CrashLoopBackOffstatus and thek8s_kubernetes-dashboard.*container on the worker is inExitedstate.Below are the errors. Has anyone successfully installed kubernetes-dashboard on
kubeadm?@justinsb you’ve been super helpful.
Please never help me again. I promise I’ll never help you.