There's no supported way to do that, in part because it would give up all of the Service names that kubernetes provides. I don't know what would happen if you tried to volumeMount a file over /etc/resolv.conf - might be worth a shot.
On Wed, Sep 20, 2017 at 3:15 AM, Simone D'Andreta <simone.dandr...@gmail.com> wrote: > Hello, > I wanted to know if there is a way to override DNS settings for pods (not > per cluster). I tried to use HostAliases but it only creates an A record for > that entry. I basically need a NS record cause I need to point to different > Consul clusters and then Consul must be able to do service discovery. So I > was thinking to change the resolv.conf for the pod to use Consul for > specific requests. Any idea? > Thank you, > Simone > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.