简体   繁体   English

启用了kube-dns插件,但没有可用的kube-dns pod

[英]kube-dns addon enabled but no kube-dns pods available

I discovered through some troubleshooting that kube-dns is not working as intended in my minikube cluster. 通过一些故障排除,我发现kube-dns无法在我的minikube集群中正常工作。 I can see the kube-dns addon enabled when I do minikube addons list command and there is also a kube-dns service running, but there are no kube-dns pods running. 当我执行minikube addons list命令时,可以看到启用了kube-dns插件,并且还运行着kube-dns服务,但是没有运行kube-dns吊舱。

$ kubectl get all -n kube-system
NAME                             READY     STATUS    RESTARTS   AGE
po/kube-addon-manager-minikube   1/1       Running   0          15m
po/kubernetes-dashboard-bltvf    1/1       Running   0          14m

NAME                      DESIRED   CURRENT   READY     AGE
rc/kubernetes-dashboard   1         1         1         14m

NAME                       CLUSTER-IP   EXTERNAL-IP   PORT(S)         AGE
svc/kube-dns               10.0.0.10    <none>        53/UDP,53/TCP   14m
svc/kubernetes-dashboard   10.0.0.192   <nodes>       80:30000/TCP    14m

$ kubectl get ep kube-dns --namespace=kube-system
NAME       ENDPOINTS   AGE
kube-dns   <none>      19m

I've tried using the kube-dns-controller.yaml file to create/deploy manually but I also get errors validating that file: 我尝试使用kube-dns-controller.yaml文件手动创建/部署,但在验证该文件时也遇到错误:

error: error validating "kube-dns-controller.yaml": error validating data: [found invalid field optional for v1.ConfigMapVolumeSource, found invalid field tolerations for v1.PodSpec]; if you choose to ignore these errors, turn validation off with --validate=false

Any ideas on what else I should look at to resolve the issue? 关于解决该问题我还有什么想法? Thanks! 谢谢!

Note: I am using minikube version v0.19.1 and kubernetes v1.5.2. 注意:我正在使用minikube版本v0.19.1和kubernetes v1.5.2。

Looks like the issue was with the kubernetes version. 看起来问题出在kubernetes版本。 Once I upgraded to v1.6.0, kube-dns was working fine again. 一旦我升级到v1.6.0,kube-dns再次正常运行。

EDIT: To fix the issue with v1.5.2 I used the workaround seen here 编辑:要解决v1.5.2的问题,我使用了此处显示的解决方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM