Create CoreDNS K8s charm for better configurability (custom Corefile)

Bug #1858007 reported by Drew Freiberger
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Bundles
Fix Released
Wishlist
Cory Johns

Bug Description

We have a customer who would like to have the DNS configuration map updated in their cluster, but have found that the charm reverts this setting on each update-status when dns-provider is set to auto or core-dns on kubernetes-master.

$ kubectl describe cm/coredns -n kube-system
Name: coredns
Namespace: kube-system
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
                {"apiVersion":"v1","data":{"Corefile":".:53 {\n errors\n health\n ready\n kubernetes cluster.local in-addr.arpa ip6.arpa {\n ...

Data
====
Corefile:
----
.:53 {
    errors
    health
    ready
    kubernetes cluster.local in-addr.arpa ip6.arpa {
      pods insecure
      fallthrough in-addr.arpa ip6.arpa
    }
    prometheus :9153
    forward . /etc/resolv.conf
    cache 30
    loop
    reload
    loadbalance
}

To workaround, we have set dns-provider=none, deployed a manual core-dns deployment, and set kubelet-extra-specs to point to ClusterDNS set to the ClusterIP of the manually deployed kube-dns service. Customer would like to not have to own and manage the core-dns deployment, but just charm config the ConfigMap.

Revision history for this message
George Kraft (cynerva) wrote : Re: Allow for custom Corefile for coredns

We don't have plans to add this to kubernetes-master/cdk-addons, but we do plan to move coredns out and create a new k8s charm for it that will be more configurable.

summary: - Allow for custom ConfigMap for core-dns in cdk-addons
+ Allow for custom Corefile for coredns
no longer affects: charm-kubernetes-master
Changed in charmed-kubernetes-bundles:
importance: Undecided → Wishlist
status: New → Triaged
Cory Johns (johnsca)
Changed in charmed-kubernetes-bundles:
status: Triaged → In Progress
assignee: nobody → Cory Johns (johnsca)
Cory Johns (johnsca)
Changed in charmed-kubernetes-bundles:
milestone: none → 1.20
summary: - Allow for custom Corefile for coredns
+ Create CoreDNS K8s charm for better configurability (custom Corefile)
Revision history for this message
Cory Johns (johnsca) wrote :
tags: added: review-needed
Cory Johns (johnsca)
Changed in charmed-kubernetes-bundles:
status: In Progress → Fix Committed
tags: removed: review-needed
Changed in charmed-kubernetes-bundles:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.