Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2019-11-27T13:09:10.907Z
Answers: is it a default one ? or we should provide it with the vpc cidr ?
Answers: Jithin Kumar S
Answers: CC BY-SA 4.0
Answers: 2019-11-27T13:46:32.610Z
Answers: where is it coming from?  Are you following a tutorial or looking at an existing installation, or what?
Answers: Matthew
Answers: CC BY-SA 4.0
Answers: 2019-11-27T18:12:54.790Z
Answers: @Matthew please add more details
Answers: 030
Answers: CC BY-SA 4.0
Answers: 2019-11-28T02:20:08.883Z
Answers: 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 ?
Answers: Jithin Kumar S
Answers: CC BY-SA 4.0
Answers: 2019-11-30T13:55:50.577Z
Answers: 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.
Answers: Matthew
Answers: CC BY-SA 4.0
Answers: 2019-11-27T12:28:14.427Z
Answers: 2019-11-27T19:53:09.760Z
Answers: 2019-11-27T19:53:09.760Z
Answers: Matthew
Body: <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>
  
Comments: CC BY-SA 4.0
Comments: 2019-11-27T09:58:09.237Z
Comments: any help would really appreciated
Comments: Jithin Kumar S
Tags: <kubernetes><networking><kubectl><network-monitoring>
Title: Kubelet config file -- > clusterDNS
UserDisplayName: Jithin Kumar S
ThreadText: # 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.  
  
  ---
  
  