本文介绍了Kubernetes仪表板始终挂起消息:没有可用于服务的终结点&"kubernetes-dashboard&"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要一些帮助使仪表板正常工作.我的仪表板窗格的状态为待处理",如果我对 http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard 然后我得到以下结果:

Heeey all, I need some help with getting the dashboard to work. My dashboard pod has status "Pending" and if I do a curl call to http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard then I get this result:

没有端点可用于服务\"kubernetes-dashboard \""

"no endpoints available for service \"kubernetes-dashboard\""

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "no endpoints available for service \"kubernetes-dashboard\"",
  "reason": "ServiceUnavailable",
  "code": 503
}

所有豆荚

core@helena-coreos ~ $ ./kubectl get po --namespace=kube-system
NAME                                     READY     STATUS    RESTARTS   AGE
kube-apiserver-146.185.128.27            1/1       Running   0          5d
kube-apiserver-37.139.31.151             1/1       Running   0          7d
kube-controller-manager-146.185.128.27   1/1       Running   0          19h
kube-controller-manager-37.139.31.151    1/1       Running   0          16h
kube-dns-v11-ika0m                       0/4       Pending   0          19h
kube-proxy-146.185.128.27                1/1       Running   0          5d
kubernetes-dashboard-1775839595-1h0lt    0/1       Pending   0          19h

描述广告连播

core@helena-coreos ~ $ ./kubectl describe pod kubernetes-dashboard-1775839595-1h0lt --namespace="kube-system"
Name:       kubernetes-dashboard-1775839595-1h0lt
Namespace:  kube-system
Node:       /
Labels:     app=kubernetes-dashboard,pod-template-hash=1775839595
Status:     Pending
IP:
Controllers:    ReplicaSet/kubernetes-dashboard-1775839595
Containers:
  kubernetes-dashboard:
    Image:  gcr.io/google_containers/kubernetes-dashboard-amd64:v1.1.0
    Port:   9090/TCP
    QoS Tier:
      cpu:  BestEffort
      memory:   BestEffort
    Liveness:   http-get http://:9090/ delay=30s timeout=30s period=10s #success=1 #failure=3
    Environment Variables:
Volumes:
  default-token-mn7e9:
    Type:   Secret (a volume populated by a Secret)
    SecretName: default-token-mn7e9
No events.

服务配置:

core@helena-coreos ~ $ ./kubectl get svc kubernetes-dashboard --namespace=kube-system -o yaml
apiVersion: v1
kind: Service
metadata:
  creationTimestamp: 2016-07-10T22:25:03Z
  labels:
    app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kube-system
  resourceVersion: "58669"
  selfLink: /api/v1/namespaces/kube-system/services/kubernetes-dashboard
  uid: 25d56060-46ed-11e6-9817-040124359901
spec:
  clusterIP: 10.3.0.67
  ports:
  - nodePort: 32014
    port: 80
    protocol: TCP
    targetPort: 9090
  selector:
    app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
status:
  loadBalancer: {}

我还试图找到一些日志:

I also tried to find some logs:

core@helena-coreos ~ $ ./kubectl logs kubernetes-dashboard-1775839595-1h0lt --namespace=kube-system
core@helena-coreos ~ $

我真的很难弄清为什么还有待解决

I've got a really hard time to figure out why things are pending

已经提前谢谢了.

推荐答案

您没有正在运行的调度程序,因此它无法调度任何容器.

You don't have a scheduler running so it can't schedule any containers.

这篇关于Kubernetes仪表板始终挂起消息:没有可用于服务的终结点&"kubernetes-dashboard&"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-01 13:18