[英]Kubernetes dashboard - ServiceUnavailable (503 error)
I am a Kubernetes newbie. 我是Kubernetes的新手。 I am trying to setup a Kubernetes cluster on AWS using kops. 我正在尝试使用kops在AWS上设置Kubernetes集群。 I was successfully able to setup the cluster. 我成功地设置了集群。 However, I am not able to access the Dashboard UI. 但是,我无法访问仪表板UI。 ( https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#accessing-the-dashboard-ui ) ( https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#accessing-the-dashboard-ui )
When I access the master node, I see the following error: 当我访问主节点时,我看到以下错误:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "no endpoints available for service \"kubernetes-dashboard\"",
"reason": "ServiceUnavailable",
"code": 503
}
I see the status of the dashboard as CrashLoopBackOff. 我看到仪表板的状态为CrashLoopBackOff。 (Please note: I have removed the names of the other pods in the following log) (请注意:我已删除以下日志中其他pod的名称)
~$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system kubernetes-dashboard-4167803980-vnx3k 0/1 CrashLoopBackOff 6 6m
$ kubectl logs kubernetes-dashboard-4167803980-vnx3k --namespace=kube-system
2017/09/25 17:50:37 Using in-cluster config to connect to apiserver
2017/09/25 17:50:37 Using service account token for csrf signing
2017/09/25 17:50:37 No request provided. Skipping authorization
2017/09/25 17:50:37 Starting overwatch
2017/09/25 17:50:37 Successful initial request to the apiserver, version: v1.7.2
2017/09/25 17:50:37 New synchronizer has been registered: kubernetes-dashboard-key-holder-kube-system. Starting
2017/09/25 17:50:37 Starting secret synchronizer for kubernetes-dashboard-key-holder in namespace kube-system
2017/09/25 17:50:37 Initializing secret synchronizer synchronously using secret kubernetes-dashboard-key-holder from namespace kube-system
2017/09/25 17:50:37 Initializing JWE encryption key from synchronized object
2017/09/25 17:50:37 Creating in-cluster Heapster client
2017/09/25 17:50:37 Serving securely on HTTPS port: 8443
2017/09/25 17:50:37 open /certs/dashboard.crt: no such file or directory
I would sincerely appreciate any help/suggestions to get the dashboard running. 我真诚地感谢任何帮助/建议让仪表板运行。 Thanks in advance! 提前致谢!
Your using latest dashboard, looks like it required SSL certificate. 您使用最新的仪表板,看起来需要SSL证书。 try with 1.6.3 it will work with-out SSL cert. 尝试使用1.6.3,它将无需SSL证书。
I am running this version in my cluster. 我在我的群集中运行此版本。
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.6.3/src/deploy/kubernetes-dashboard.yaml
Helm command to install dashboard Helm命令安装仪表板
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
helm install stable/kubernetes-dashboard --name kubernetes-dashboard --namespace kube-system --debug
helm install stable/heapster --namespace kube-system
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.