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

Custom DNS entries for kube-dns #41328

Closed
morallo opened this issue Feb 13, 2017 · 7 comments
Closed

Custom DNS entries for kube-dns #41328

morallo opened this issue Feb 13, 2017 · 7 comments

Comments

@morallo
Copy link

morallo commented Feb 13, 2017

Is this a request for help?: No.

What keywords did you search in Kubernetes issues before filing this one?: kube-dns custom dns entry


Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST

Kubernetes version (use kubectl version): v1.5.2

Environment:

  • Cloud provider or hardware configuration: baremetal,
  • OS (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)
  • Kernel (e.g. uname -a): 3.16.7
  • Install tools: docker-multinode.

What happened: Entries in /etc/hosts of the nodes are not used by kube-dns. There is no way to replicate this custom DNS configuration for the cluster.

What you expected to happen: Some way to easily define custom DNS entries used by kube-dns, without deploying an additional DNS server.

Anything else we need to know:

Already considered solutions:

Possible solutions:

  • Implement a special ConfigMap to declare custom entries on a cluster-wide level and make kube-dns look it up.
  • kube-dns imports node's /etc/hosts entries, like it does for /etc/resolv.conf. This is not very elegant and doesn't scale, but it replicates a capability currently existing in non containerized system administration.
@morallo
Copy link
Author

morallo commented Feb 13, 2017

Reading this, I don't know if this is already in the works.

@thockin could you clarify the status? Thanks!

@cmluciano
Copy link

This is recently added to kube-dns here. It will be configurable through a config-map. This functionality should land in the 1.6 release of Kube.

@morallo
Copy link
Author

morallo commented Feb 13, 2017

Thank you @cmluciano :-)

However, I think it's not the same feature. That new option allows to pass nameserver. I was referring to the possibility of passing custom name/address pairs, without setting up a DNS server.

@thockin
Copy link
Member

thockin commented Feb 13, 2017

@bowei

@bowei
Copy link
Member

bowei commented Feb 13, 2017

@morallo -- it would be great to write up a example of what you are looking for and we can go from there.

  • If they are in the cluster.local domain, it might not be a good idea given the potential for name clash.
  • If they are in a separate domain (e.g. acme.local.), there is a proposal coming that will allow you to designate optional stub domains that have their own custom name servers. In that case, you can run your own dnsmasq for that domain and it will be incorporated into the namespace.

@bowei
Copy link
Member

bowei commented Feb 13, 2017

Open the issue on kubernetes/dns, so it will be more visible to the DNS work (kube-dns has been split off into a separate repo)...

@morallo
Copy link
Author

morallo commented Feb 14, 2017

Thanks all for the replies.
Follow-up issue in kubernetes/dns: kubernetes/dns#55

@morallo morallo closed this as completed Feb 14, 2017
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

4 participants