<p>It is the address of the DNS server (probably CoreDNS but possibly kube-dns) for the cluster.</p>

<p>Kubernetes uses a DNS server within the cluster so pods can find each other using service names. This is the "cluster DNS" server. Every time a service is created, it gets registered in the DNS server. </p>

<p>In Linux, the <code>/etc/resolv.conf</code> file is where the DNS server is configured. If you want to use Google's public DNS server (8.8.8.8) your <code>/etc/resolv.conf</code> file has the entry <code>nameserver 8.8.8.8</code>.  </p>

<p>In Kubernetes, the kubelet process on a worker node configures each pod.  Part of the configuration process is to create the file <code>/etc/resolv.conf</code> and specify the correct DNS server.  That server is spec'ed by the <code>clusterDNS</code> configuration option.</p>

<p>How you set it (if you even <em>need</em> to set it yourself) depends on how you're installing kubernetes.  It ultimately depends on the CNI provider you're using, but also if you're doing "kubernetes the hard way" versus <code>kubeadm</code>.</p>

CC BY-SA 4.0
2019-11-27T13:09:10.907Z
is it a default one ? or we should provide it with the vpc cidr ?
Jithin Kumar S
CC BY-SA 4.0
2019-11-27T13:46:32.610Z
where is it coming from?  Are you following a tutorial or looking at an existing installation, or what?
Matthew
CC BY-SA 4.0
2019-11-27T18:12:54.790Z
@Matthew please add more details
030
CC BY-SA 4.0
2019-11-28T02:20:08.883Z
Hey Mathew,  i am following a tutorial (linux academy) "kubernetes the hard way". there when creating the configuration file for kubelet and kube-proxy config files , a flag with cidr is mentioned and provided a value but my point is can i blindly take that value from the tutorial or i should change according to my vpc cidr ?
Jithin Kumar S
CC BY-SA 4.0
2019-11-30T13:55:50.577Z
It depends on which networking provider you go with.  Weave uses the 10.32.0.0/12 network by default. If you're going to use weave, keep it as is.  If you're using a different one, read their documentation.
Matthew
CC BY-SA 4.0
2019-11-27T12:28:14.427Z
2019-11-27T19:53:09.760Z
2019-11-27T19:53:09.760Z
Matthew
<p>clusterDNS: </p>

<h2>  - "10.32.0.10"</h2>

<p>The above is a flag passed to the kubelet file, i dont know what it refers to clsuter DNS ? Is it refers to VPC CIDR or any subnet CIDR ?</p>

CC BY-SA 4.0
2019-11-27T09:58:09.237Z
any help would really appreciated
Jithin Kumar S
<kubernetes><networking><kubectl><network-monitoring>
Kubelet config file -- > clusterDNS
Jithin Kumar S
# Kubelet config file -- > clusterDNS

(Asked by: username_0 on 2019-11-27)

clusterDNS:

## - "10.32.0.10"

The above is a flag passed to the kubelet file, i dont know what it refers to clsuter DNS ? Is it refers to VPC CIDR or any subnet CIDR ?

**Tags:** kubernetes, networking, kubectl, network-monitoring

> **Comments:**
> **username_0**: any help would really appreciated  

---

## 1 answers

### Answer by username_1 on 2019-11-27. Score: 1

It is the address of the DNS server (probably CoreDNS but possibly kube-dns) for the cluster.

Kubernetes uses a DNS server within the cluster so pods can find each other using service names. This is the "cluster DNS" server. Every time a service is created, it gets registered in the DNS server.

In Linux, the `/etc/resolv.conf` file is where the DNS server is configured. If you want to use Google's public DNS server (8.8.8.8) your `/etc/resolv.conf` file has the entry `nameserver 8.8.8.8`.

In Kubernetes, the kubelet process on a worker node configures each pod. Part of the configuration process is to create the file `/etc/resolv.conf` and specify the correct DNS server. That server is spec'ed by the `clusterDNS` configuration option.

How you set it (if you even *need* to set it yourself) depends on how you're installing kubernetes. It ultimately depends on the CNI provider you're using, but also if you're doing "kubernetes the hard way" versus `kubeadm`.

> **Comments:**
> **username_0**: is it a default one ? or we should provide it with the vpc cidr ?  
> **username_1**: where is it coming from?  Are you following a tutorial or looking at an existing installation, or what?  
> **username_2**: @username_1 please add more details  
> **username_0**: Hey Mathew,  i am following a tutorial (linux academy) "kubernetes the hard way". there when creating the configuration file for kubelet and kube-proxy config files , a flag with cidr is mentioned and provided a value but my point is can i blindly take that value from the tutorial or i should change according to my vpc cidr ?  
> **username_1**: It depends on which networking provider you go with.  Weave uses the 10.32.0.0/12 network by default. If you're going to use weave, keep it as is.  If you're using a different one, read their documentation.  

---

