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 as an alternative to kube-dns #722

Closed
bootc opened this issue Jun 25, 2018 · 18 comments
Closed

CoreDNS as an alternative to kube-dns #722

bootc opened this issue Jun 25, 2018 · 18 comments
Assignees
Milestone

Comments

@bootc
Copy link

bootc commented Jun 25, 2018

This is a feature request. Please provide an option to deploy CoreDNS instead of kube-dns. Bonus points for providing a migration path between them.

https://kubernetes.io/docs/tasks/administer-cluster/coredns/

@containerpope
Copy link

This would be awesome, if included directly into installation.

@superseb superseb self-assigned this Jul 21, 2018
@sebastien-prudhomme
Copy link

@superseb can you first add configuration in cluster.yml for a "dns provider", as the monitoring or the ingress one, so we can disable the default kubedns addon and install coredns with a user addon?

@yongzhang
Copy link

  • 1

@LiouPinChen
Copy link

Thank you for helping me. I want to understand RKE more and try to deal with core-dns. My codes seems workable. However, they still have some problems. Pls enlighten me on this issue and help me. Thank you very much.

2018-08-30 9 21 26

2018-08-30 9 23 39

2018-08-30 9 23 02

@superseb
Copy link
Contributor

Put some time into this today, and had a first deploy. Hopefully it can make it in the next release as experimental option

@thearifismail
Copy link

@superseb what is the expected timeframe? Anything available for kicking tires?

@superseb
Copy link
Contributor

superseb commented Nov 5, 2018

PR should be up this week

@thearifismail
Copy link

@superseb Great. I have been waiting for it to try it out. How will users know when it becomes available?

@pulberg
Copy link

pulberg commented Dec 5, 2018

@superseb Any update on this?

@sdelrio
Copy link

sdelrio commented Dec 30, 2018

@pulberg, I'm also interested in this feature. I saw a PR #1018 about this, but seems CI test is failing

@superseb
Copy link
Contributor

superseb commented Jan 2, 2019

We are reviewing it currently, CI is failing due to types not being merged yet (rancher/types#621)

@alena1108
Copy link

Can be tested in v0.2.0-rc5

@sdelrio
Copy link

sdelrio commented Feb 4, 2019

Nice with v0.2.0-rc5, it smoothly upgrades, just a small warning but probably a timeout, just less than second after it says deployed successfully

...
INFO[0207] [dns] removing DNS provider kubedns
INFO[0249] [dns] DNS provider kubedns removed successfully
INFO[0249] [addons] Setting up coredns
INFO[0249] [addons] Saving ConfigMap for addon rke-coredns-addon to Kubernetes
INFO[0249] [addons] Successfully saved ConfigMap for addon rke-coredns-addon to Kubernetes
INFO[0249] [addons] Executing deploy job rke-coredns-addon
WARN[0279] Failed to deploy addon execute job [rke-coredns-addon]: Failed to get job complete status for job rke-coredns-addon-deploy-job in namespace kube-system
INFO[0279] [dns] DNS provider coredns deployed successfully
...
$ kubectl get deploy coredns coredns-autoscaler -n kube-system
NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
coredns              1/1     1            1           3m42s
NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
coredns-autoscaler   1/1     1            1           3m42s
$ kubectl logs coredns-66599d4bdb-sv6qs -n kube-system
.:53
2019-02-04T16:07:38.913Z [INFO] CoreDNS-1.2.6
2019-02-04T16:07:38.913Z [INFO] linux/amd64, go1.11.2, 756749c
CoreDNS-1.2.6
linux/amd64, go1.11.2, 756749c
 [INFO] plugin/reload: Running configuration MD5 = 464baa972bd6ab609ff20cbd7fca9320

@sangeethah sangeethah assigned sowmyav27 and unassigned sangeethah Feb 12, 2019
@sowmyav27
Copy link

verified on rke version v0.2.0-rc5.

coredns is deployed.

coredns

coredns1

@blaggacao
Copy link

Meanwhile of #1106 for the ones, wondering like me what images to swap here is kind of the answer:

@ahmadalli
Copy link

ahmadalli commented Mar 4, 2019

what settings should I change in order to switch to coredns? @sdelrio

@thearifismail
Copy link

@ahmadalli I have not used RKE CLI for a couple of months now and I think coredns is now officially supported. If it is, I suggest running “rke config ...” and create a new conf file and choose coredns as the dns option. If not supported officially, then replace kubedns entries in your Conf file with coredns. For which coredns image to use, you may have to do a bit of search. I hope it helps.

@sdelrio
Copy link

sdelrio commented Mar 12, 2019

@ahmadalli , into rancher-cluster.yml (or the filename that you pass as --config parameter) Add this:

dns:
  provider: coredns

Looking on the sourcode you can set it to: kubdns or coredns:

 var DNSProviders = []string{"kubedns", "coredns"}

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

No branches or pull requests