public-cloud-roadmap icon indicating copy to clipboard operation
public-cloud-roadmap copied to clipboard

CoreDNS configmap (coredns, in kube-system namespace) overwrite

Open kalos opened this issue 2 years ago • 12 comments

Hi. I noticed that with each patch/update the Corefile configmap is overwritten.

Is there any way to avoid this or to include other configmaps?

AKS and DigitalOcean adopts an interesting solution: https://docs.digitalocean.com/products/kubernetes/how-to/customize-coredns/

Is there a similar function on ovh?

Is it possible to expect a change to the default Corefile similar to the one in the DO site?

kalos avatar Jan 11 '22 16:01 kalos

Hello @kalos ans sorry for the delay, was off for a few weeks and needed to discuss than with the team. I confirm I see the use case and enter this is our mid term backlog.

mhurtrel avatar Feb 17 '22 14:02 mhurtrel

Hello @mhurtrel We encounter the same problem, we would like to overload the config corefile. Do you have visibility on the implementation of this development.

We need it to add a zone and a forward to our DNS servers located on the SDDC.

Thank you for your reply,

JulienCharge avatar Mar 22 '22 13:03 JulienCharge

Hello @JulienCharge I confirm this will be supported but I can't yet share an ETA. Will try to get one and update this task, sorry for the delay.

mhurtrel avatar Mar 22 '22 18:03 mhurtrel

Hello @mhurtrel have you a news on this topic ?

Grounz avatar Jun 01 '22 15:06 Grounz

Hello @Grounz I confirm we plan to have this one tackled before the end of the summer. i will update with a more precise ETA in a couple of week.

mhurtrel avatar Jun 01 '22 16:06 mhurtrel

This issue will be tackled late summer

mhurtrel avatar Jun 30 '22 11:06 mhurtrel

Hello, We are designing this feature and several implementations seem possible. One of the possibilities is to use the native import mechanism of CoreDNS (just like AKS or DigitalOcean) https://coredns.io/plugins/import/

Are you OK with this type of implementation? Do you have any comments? Special wishes for overload file naming?

jMonsinjon avatar Jul 13 '22 14:07 jMonsinjon

I suggest to use DigitalOcean convention "custom/*.override" for default server block and "custom/*.server" for additional server block. Name of configmap: coredns-custom.

Thanks

kalos avatar Jul 13 '22 15:07 kalos

I suggest to use DigitalOcean convention "custom/*.override" for default server block and "custom/*.server" for additional server block. Name of configmap: coredns-custom.

looks like that is the same as what AKS does. I think OVH should stick with that naming scheme, too.

d--j avatar Jul 13 '22 15:07 d--j

Hi @mhurtrel have you any news ?

lenglet-k avatar Sep 06 '22 09:09 lenglet-k

Hello @lenglet-k Our Current ETA is October, hopefully early in the month.

mhurtrel avatar Sep 06 '22 12:09 mhurtrel

We are doing our best to deploy this feature end of September or early October (available through API)

jMonsinjon avatar Sep 14 '22 13:09 jMonsinjon

Hello, This feature has been released but the documentation is still in progress.

On every new K8S cluster, or after an update, the new CoreDNS config will include an expansion mechanism. You can see now a new configmap named 'coredns-custom' that can be modified to add your specific configuration. The original coredns config must still not be changed because we can reset it at any time.

For example

$ kubectl -n kube-system edit cm coredns-custom
...
data:
  example.server: |
    my-custom-domain.local.:53 {
    forward . [my-custom-dns-server-private-ip]
  }

jMonsinjon avatar Oct 06 '22 11:10 jMonsinjon

Hi, A new tutorial about how to customize CoreDNS have been released: https://docs.ovh.com/gb/en/kubernetes/customizing-coredns/ 🙂

scraly avatar Oct 12 '22 03:10 scraly