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

Multiple kube-dns pods scheduled on same node #6456

Closed
1 of 2 tasks
jonastl opened this issue Nov 27, 2017 · 3 comments
Closed
1 of 2 tasks

Multiple kube-dns pods scheduled on same node #6456

jonastl opened this issue Nov 27, 2017 · 3 comments

Comments

@jonastl
Copy link

jonastl commented Nov 27, 2017

  • Feature Request
  • Bug Report

Problem:
Multiple kube-dns pods may be scheduled on the same node.
This poses a problem from two angles:

  1. Consumes scarce resources
    if some of the nodes in a cluster are small, have little memory/cpu and are sized to fit a a certain intended workload, then having several instances of kube-dns on the same machine may steal enough allocatable resources to make fitting the intended workload impossible on the node. Each kube-dns pod requires 260 milli cpu and 110 MiB of RAM. Especially the requested amount of CPU quickly makes an impact when multiple pods get scheduled to the same node.
  2. Decreased availability
    Having multiple pods on the same machine negates the purpose of having several instances from an availability perspective

Proposed Solution:
Use pod anti-affinity in the pod-spec for the kube-dns deployment, so that the kube-dns pods are spread out over the cluster and won't stack on top of each other on the same node(s).

Kubernetes Version: 1.8.3

Additional Information:
We faced this very problem in GKE where some pods intended for our small-ish control plane nodes did not fit because there were multiple kube-dns pods scheduled on those nodes. We use Cluster Autoscaler on a cluster with thousands of cores, which means the proportional horizontal pod autoscaler used by the kube-dns-autoscaler will produce a lot of kube-dns pods, and their placement are mildly speaking sub-optimial.

@tengqm
Copy link
Contributor

tengqm commented Nov 27, 2017

@jonastl Did you meant to file a feature request to kubernetes/kubernetes project instead of kubernetes/website?

@jonastl
Copy link
Author

jonastl commented Nov 27, 2017

Indeed, thanks Qiming. I’ll move it as soon as i have computer access.

@jojje
Copy link

jojje commented Nov 27, 2017

Wrong project, closing as it already has a counterpart in the code repo: kubernetes/kubernetes#52193

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

No branches or pull requests

3 participants