当前位置:  开发笔记 > 编程语言 > 正文

无法启动skydns

如何解决《无法启动skydns》经验,为你挑选了1个好方法。

我正在尝试在ubutnu上安装kubernetes(裸机安装).我安装了一个主节点和一个节点,看起来很好.我安装了ui插件没有问题但是当我尝试安装dns插件时,pod会不断重启.

在kube-apiserver日志中,我得到:

E1218 12:56:15.298118       5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
I1218 12:56:15.298220       5 handlers.go:131] GET /api/v1/services: (534.467µs) 401 [[kube2sky/v0.20.2 (linux/amd64) kubernetes/unknown] 172.27.35.39:33013]
E1218 12:56:15.298396       5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
I1218 12:56:15.298469       5 handlers.go:131] GET /api/v1/endpoints: (493.5µs) 401 [[kube2sky/v0.20.2 (linux/amd64) kubernetes/unknown] 172.27.35.39:33014]
I1218 12:56:16.001321       5 handlers.go:131] GET /healthz: (83.326µs) 0 [[Go 1.1 package http] 127.0.0.1:42096]
E1218 12:56:16.303274       5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
E1218 12:56:16.303274       5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error

在kube2sky容器日志中,我收到以下错误:

E1218 12:57:51.713651       1 reflector.go:136] Failed to list   *api.Service: the server has asked for the client to provide credentials (get services)
E1218 12:57:51.713850       1 reflector.go:136] Failed to list *api.Endpoints: the server has asked for the client to provide credentials (get endpoints)

看起来我喜欢我的服务帐户和令牌有问题,但我查看了kube2sky实例,我看到我在/tmp/secrets/kubernetes.io/serviceaccount目录中有一个令牌,而ca.crt是正确的ca集群

我正在使用:ubuntu 14.04 kubernetes 1.1.2 add我尝试从kubernetes 1.1.2的addon目录创建dns插件



1> Joao Morais..:

更新api-server的证书和密钥后,我遇到了同样的问题.我删除了秘密后修复了DNS服务:

# Search the secret name
kubectl get pod --namespace=kube-system -l k8s-app=kube-dns -o yaml | grep -A1 serviceaccount

# Delete the current secret
kubectl delete secret/ --namespace=kube-system

我还需要重新启动整个POD,不知道是否有更好的方法:

kubectl delete svc/kube-dns rc/kube-dns-v9 --namespace=kube-system
kubectl create -f dns-addon.yaml 

推荐阅读
家具销售_903
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有