<p>I would like to have a web server running in a pod reaching a web server running on my host OS.</p>

<p>To do that i need to have the ip or dns of my host inside microk8s.</p>

<p>Is there any way to get it?</p>

<p>You can use <a href="https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/" rel="nofollow noreferrer"><code>Downward API</code></a> to get host IP details.</p>

<p>Example:</p>

<pre><code>env:
   - name: NODE_IP
     valueFrom:
       fieldRef:
         fieldPath: status.hostIP
</code></pre>
