-
We stumbled upon a minor difference between k3s CoreDNS setup and rke2. We used to add a specific host to our CoreDNS via
the k3s core file for CoreDNS looks like this:
the last line is missing in rke2, it seems there is no possibility to achieve the same thing with rke2 without replacing the default core file for CoreDNS, which we are reluctant to because it could cause issues when upgrading. Is there a way to add a custom host to be resolved in rke2? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This issue seems somewhat related: #4940 but does not provide a solution which we would be fond of, see above. Maybe this is the reason why k3s used the import of custom files? |
Beta Was this translation helpful? Give feedback.
-
It seems there is a "default" https://github.com/coredns/helm/pull/44/files via the extraConfig variable. We will try that. https://github.com/rancher/rke2-charts/blob/main/charts/rke2-coredns/rke2-coredns/1.24.007/values.yaml#L154C16-L154C16 |
Beta Was this translation helpful? Give feedback.
-
Our solution looks like this:
with a core-custom config map like this:
This will hopefully help someone else too. |
Beta Was this translation helpful? Give feedback.
Our solution looks like this:
with a core-custom config map like this: