title: How should I set up FQDN identity for kubernetes pods in local cluster?
body: <p>This question is relevant to local cluster (kubernetes 1.10+ version, Linux). After creating a StatefulSet to manage several pods, I met a use case that requires setting up FQDN identity for the pods.</p>
  
  <p>For instance, I wish to have the first pod with FQDN identity of <code>&lt;some-statefulset&gt;-0.&lt;some-subdomain&gt;.default.svc.cluster.local</code>. Desired behavior can be achieved by adding <code>&lt;IP-address&gt; &lt;some-statefulset&gt;-0.&lt;some-subdomain&gt;.default.svc.cluster.local</code> into <code>/etc/hosts</code> file, but I want to have the FQDN to be identified automatically in the local cluster without changing the <code>/etc/hosts</code> file.</p>
  
  <p>Not sure whether I need to enable some settings when starting the local cluster.</p>