Skip to content

Commit

Permalink
coredns: Use /run/systemd/resolve/resolv.conf
Browse files Browse the repository at this point in the history
In FCOS36 and later coredns started failing with loops.
/etc/resolv.conf will not work with coredns (see [1]).

Tested on FC35/36/37.

[1]: https://github.com/coredns/coredns/blob/master/plugin/loop/README.md#troubleshooting

Change-Id: I3a0700046bade7bd0b3a1b319f66b8f675f0c8fb
(cherry picked from commit 037a71aaf8664a7f6a8926dceb294592d73da591)
(cherry picked from commit bf99035)
  • Loading branch information
mnasiadka committed Mar 27, 2024
1 parent e40051d commit 0f3ff1a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ data:
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
forward . /etc/resolv.conf
forward . /run/systemd/resolve/resolv.conf
cache 30
loop
reload
Expand Down Expand Up @@ -144,6 +144,9 @@ spec:
readOnly: true
- name: tmp
mountPath: /tmp
- name: resolvconf
mountPath: /run/systemd/resolve/resolv.conf
readOnly: true
ports:
- containerPort: 53
name: dns
Expand Down Expand Up @@ -186,6 +189,10 @@ spec:
items:
- key: Corefile
path: Corefile
- name: resolvconf
hostPath:
path: /run/systemd/resolve/resolv.conf
type: File
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 0f3ff1a

Please sign in to comment.