<p>I am new to Kubernetes and looking for a better understanding of the difference between Kube-DNS and CoreDNS.</p>

<p>As I understand it the recommendation is to use the newer CoreDNS rather than the older Kube-DNS. </p>

<p>I have setup a small cluster using <code>kubeadm</code> and now I am a little confused about the difference between CoreDNS and Kube-DNS.</p>

<p>Using <code>kubectl get pods --all-namespaces</code> I can see that I have two CoreDNS pods running.</p>

<p>However using <code>kubectl get svc --all-namespaces</code> I also see that I have a service named <code>kube-dns</code> running in the <code>kube-system</code> namespace. When I inspect that with <code>kubectl describe svc/kube-dns -n kube-system</code> I can see that the <code>kube-dns</code> service links to coredns.</p>

<p>I am now wondering if I am actually running both kube-dns and coredns. Or else, why is that service called <code>kube-dns</code> and not <code>core-dns</code>?</p>

<p>I have K8S 1.12. Do a describe of the dns pod.</p>
<blockquote>
<p>kubectl describe pod coredns-576cbf47c7-hhjrs --namespace=kube-system | grep -i &quot;image:&quot;</p>
<p>Image:         k8s.gcr.io/coredns:1.2.2</p>
</blockquote>
<p>Looks like coredns is running. According to the documentation CoreDNS is default from K8S 1.11. For previous installations it's kube-dns.</p>
<p>The image is what important, rest are metadata (names, labels etc).</p>
<p>According to the K8S blog <a href="https://kubernetes.io/blog/2018/07/10/coredns-ga-for-kubernetes-cluster-dns/" rel="noreferrer">here</a>.</p>
<blockquote>
<p>In Kubernetes 1.11, CoreDNS has reached General Availability (GA) for DNS-based service discovery, as an alternative to the kube-dns addon. This means that CoreDNS will be offered as an option in upcoming versions of the various installation tools. In fact, the kubeadm team chose to make it the default option starting with Kubernetes 1.11.</p>
</blockquote>
<p>Also, see this link for <a href="https://kubernetes.io/docs/tasks/administer-cluster/coredns/#installing-kube-dns-instead-of-coredns-with-kubeadm" rel="noreferrer">more</a> info.</p>
