centos安装kubernets(三) 解决dashboard报错解决

前端之家收集整理的这篇文章主要介绍了centos安装kubernets(三) 解决dashboard报错解决前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

访问http://121.201.29.62:8080/ui时报错:

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

如下图

不清楚是什么原因,查下dashboard pod的状况

[root@i-gocqtxn7 ~]# ./kubectl get pods --namespace kube-system
NAME READY STATUS RESTARTS AGE
kubernetes-dashboard-2131979702-3r49y 0/1 ContainerCreating 0 6m

[root@i-gocqtxn7 ~]# ./kubectl describe pod kubernetes-dashboard-2131979702-3r49y --namespace kube-system
Name: kubernetes-dashboard-2131979702-3r49y

解决问题:

Dockerpull lhcalibur/pause-amd64
dockertag lhcalibur/pause-amd64:latest gcr.io/google_containers/pause-amd64:3.0

猜你在找的CentOS相关文章