https://rancher.com/ logo
Title
q

quiet-dentist-43250

01/31/2023, 4:25 PM
Howdy, I'm trying to modify coredns to forward upstream request to a specific server, but that setting doesn't seem to stick reliably. I'm looking at the modifications using a configmap called coredns-custom. I see a few issues regarding this, but I've not seen documentation. Is there something more needed than creating the configmap? Perhaps mounting it within the container?
r

rough-farmer-49135

02/01/2023, 3:13 PM
I thought the ConfigMap should be there already. A coworker was the one that fixed it when we had a problem with recent Ubuntu having a localhost DNS & things not getting forwarded, but his notes say: 'The config map in kube-system coredns has a section including "forward . /etc/resolv.conf" change that to "forward . /etc/resolv.conf ${DNS_IP}" '
So you should already have a spot to put it.
q

quiet-dentist-43250

02/06/2023, 4:53 PM
It seems very dependent on when you apply the change. If applied too early, it seems to get overridden.