无法让kubernetes仪表板启动并运行

时间:2016-10-31 12:09:59

标签: kubernetes

我正在尝试使用以下版本首次安装多节点kubernetes设置:

  

KUBE_VERSION = 1.4.0,FLANNEL_VERSION = 0.5.0,ETCD_VERSION = 2.2.0

我的设置有:2个节点和1个主节点+节点。所有这些节点(在我的例子中都是VM)都运行Ubuntu 14.04,内存为1 GB,硬盘为25 GB。

我已按照以下链接执行安装

  

http://kubernetes.io/docs/getting-started-guides/ubuntu/

一旦我能够启动群集(使用kubectl get cs)验证),我尝试运行KUBERNETES_PROVIDER=ubuntu ./deployAddons.sh来安装dns和ui插件。

以下是命令的输出:

> Deploying DNS on Kubernetes replicationcontroller "kube-dns-v20"
> created service "kube-dns" created Kube-dns rc and service is
> successfully deployed.
> 
> Creating Kubernetes Dashboard replicationController
> replicationcontroller "kubernetes-dashboard-v1.4.0" created Creating
> Kubernetes Dashboard service service "kubernetes-dashboard" created

但是,当尝试使用网址http://master-ip:8080/ui访问信息中心时,我收到以下消息

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

我看到我的豆荚陷入了以下状态:

kube-dns-v20-nskvk                  1/3       CrashLoopBackOff   18         
kubernetes-dashboard-v1.4.0-4py1m   0/1       CrashLoopBackOff   10         

以下是我的信息中心广告管理系统的日志

>  kubectl logs kubernetes-dashboard-v1.4.0-4py1m  -n kube-system
> Starting HTTP server on port 9090 Creating API server client for
> https://192.168.3.1:443 Error while initializing connection to
> Kubernetes apiserver. This most likely means that the cluster is
> misconfigured (e.g., it has invalid apiserver certificates or service
> accounts configuration) or the --apiserver-host param points to a
> server that does not exist. Reason: the server has asked for the
> client to provide credentials

以下是我服务的输出

kubectl get svc -n kube-system
NAME                   CLUSTER-IP      EXTERNAL-IP   PORT(S)         
kube-dns               192.168.3.10    <none>        53/UDP,53/TCP   
kubernetes-dashboard   192.168.3.229   <none>        80/TCP          

kubectl get svc 
kubernetes   192.168.3.1   <none>        443/TCP   

我已经看到很多与仪表板相关的问题但无法获得任何解决方案,我不知道如何继续进行,任何指针都可以提供很大的帮助

0 个答案:

没有答案