2016-07-16 33 views
1

Heeey all,我需要一些帮助让仪表板工作。我的仪表盘荚有状态“挂起”,如果我做​​卷曲的呼叫,然后我得到这样的结果:Kubernetes仪表板保持挂起消息:没有可用于服务的端点“kubernetes-dashboard”

kubernetes的仪表板\“”

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

所有豆荚“没有可用的服务\端点”

[email protected] ~ $ ./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 

描述荚:

[email protected] ~ $ ./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. 

服务配置:

[email protected] ~ $ ./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: {} 

我也试图找到一些日志:

[email protected] ~ $ ./kubectl logs kubernetes-dashboard-1775839595-1h0lt --namespace=kube-system 
[email protected] ~ $ 

我为什么事情正在申请提前

由于已经得到了一个很艰难的时期弄清楚。

回答

2

您没有运行调度程序,因此无法调度任何容器。

1

另一种可能性是您没有群集中的资源,并且调度程序无法安排仪表板UI。如果这是真的,你可以在集群事件中看到这个(kubectl get events --namespace=kube-system)。

+0

它没有答案,但仍然感谢提示。未来可能需要它;) –

相关问题