Score:0

Where are the configurations for CoreDNS stored in Kubernetes

jp flag

I was digging into CoreDNS recently on a cluster where kubeadm was used to install it. I see that I have a default deployment of 2 replicas, but what if I want more? I know I can scale, but that is an extra step that I'd rather not take. I want it so that all new clusters created have 3 CoreDNS for HA (since I will have 3 Masters). But I cannot find any information on where the manifests are stored which kubeadm uses.

I also want to set pod anti-affinity rules for the pods.

I may also want to configure the CoreDNS configmap.

Where are the configurations stored which kubeadm uses to install and configure CoreDNS?

Score:1
jp flag

The configurations for CoreDNS are hard-coded into the manifest.go file. https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/addons/dns/manifests.go#L59

Therefore, if you wanted customizations, you could fork the kubeadm branch and build your own.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.