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

coredns should not be running on master by default #5917

Merged
merged 1 commit into from
Nov 11, 2018
Merged

coredns should not be running on master by default #5917

merged 1 commit into from
Nov 11, 2018

Conversation

bhegazy
Copy link
Contributor

@bhegazy bhegazy commented Oct 11, 2018

CoreDNS can be scheduled on masters.

The masters are busy enough and coredns shouldn't be running there as well

I have followed coredns/deployment#50

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 11, 2018
@k8s-ci-robot
Copy link
Contributor

Hi @bhegazy. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 11, 2018
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Oct 11, 2018
@rdrgmnzs
Copy link
Contributor

rdrgmnzs commented Oct 11, 2018

@bhegazy we tend to lean more towards the configs used by kubeadm. Also at this point we would have to be very careful about this change so that we don't break configs for anyone that may be relying on coreDNS being deployed on the masters, so we most likely don't want to just outright remove it.

At this point if someone does not want CoreDNS deployed to their masters we'd have to make this configurable and most likely leave the default such that it is still deployed to the masters.

@bhegazy
Copy link
Contributor Author

bhegazy commented Oct 12, 2018

@rdrgmnzs You're absolutely right, I have requested this change due to my m5.xlarge masters was always above 70% cpu because of CoreDNS pods running ( we have around 50k incoming requests to CoreDNS coredns_dns_request_count_total). after moving to worker nodes only cpu now 35% so I would really love to help and make it configurable and leave this default, if you can guide me as I'm new here 👍

@justinsb
Copy link
Member

justinsb commented Nov 9, 2018

So it's not actually the kubeadm configs, but the GCE kube-up configs - they are the ones that are very heavily tested. The file seems to be here: https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/coredns/coredns.yaml.in

But ... I actually agree with you - there's no reason to run CoreDNS on the master, and we didn't run kube-dns on the master. I'm going to open an issue upstream with kubernetes to see what the logic is.

@justinsb
Copy link
Member

justinsb commented Nov 9, 2018

Raised upstream in kubernetes/kubernetes#70851 - it will be good to see what they say. This does seem like a change from the kube-dns behaviour.

@justinsb
Copy link
Member

Upstream seemed to agree, and I think it will be very surprising to people if this behaves differently to kube-dns.

Thanks @bhegazy

/approve
/lgtm
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 10, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bhegazy, justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 10, 2018
@k8s-ci-robot k8s-ci-robot merged commit e5b2d2c into kubernetes:master Nov 11, 2018
@bhegazy
Copy link
Contributor Author

bhegazy commented Nov 11, 2018

This is awesome Thanks @justinsb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants