Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube-dns restarts frequently,using kubeadm v1.6.0-alpha.0.2074 #99

Closed
qsfang opened this issue Dec 26, 2016 · 10 comments
Closed

kube-dns restarts frequently,using kubeadm v1.6.0-alpha.0.2074 #99

qsfang opened this issue Dec 26, 2016 · 10 comments
Assignees
Labels

Comments

@qsfang
Copy link

qsfang commented Dec 26, 2016

Seems that kube-dns is extremely unstable ,always CrashLoopBackOff, what could be the problem?

@qsfang qsfang changed the title kubedns restarts frequently,using kubeadm v1.6.0-alpha.0.2074 kube-dns restarts frequently,using kubeadm v1.6.0-alpha.0.2074 Dec 26, 2016
@pires
Copy link
Contributor

pires commented Jan 4, 2017

Most probably caused by #102.

@tristanz
Copy link

tristanz commented Jan 6, 2017

We saw this on on earlier release (have not tested 1.6) and it seemed to be related to liveness check failure due to low CPU limits causing timeouts.

@qsfang
Copy link
Author

qsfang commented Jan 6, 2017

Problem is liveness check failure, forgot to set net/bridge/bridge-nf-call-iptables=1, which must be set for cni network , details in http://kubernetes.io/docs/admin/network-plugins/#network-plugin-requirements

@luxas
Copy link
Member

luxas commented Jan 6, 2017 via email

@pires
Copy link
Contributor

pires commented Jan 6, 2017

@dmmcquay you're the preflight checks man. Can you take care of this?

@dmmcquay
Copy link

dmmcquay commented Jan 6, 2017

@pires and @luxas I'll take a look at this one.

@bjornl
Copy link

bjornl commented Jan 9, 2017

@fangqiusheng What Linux distribution?

@qsfang
Copy link
Author

qsfang commented Jan 10, 2017 via email

@bjornl
Copy link

bjornl commented Jan 10, 2017

@fangqiusheng If it is kube-dns that can not communicate to the kube-apiserver I did experience the same problem on CentOS 7.2. I isolated it to the iptables INPUT chain was blocking traffic from pod network to the kube network. I suspect firewalld config by kubeadm may be brokenon CentOS.

If it is the case one can see the API connect failure in the log.

kubectl logs kube-dns-2924299975-pn60c --namespace=kube-system --container=kube-dns

@luxas
Copy link
Member

luxas commented Jan 11, 2017

TL;DR; Please set net/bridge/bridge-nf-call-iptables=1 to avoid this.

The fix is in the master branch, so this is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants