<p>Is there a way to access the underlying host/node's process from Kubernetes pod in the same way like we access the host/node's filesystem by using <code>hostPath</code> volume mount?</p>

<p>PS: I am trying to monitor the node process with the help of <code>auditbeat</code> deployed as a pod on Kubernetes.</p>

Rajat Badjatya
<p>I believe what you are looking for is <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#podspec-v1-core" rel="nofollow noreferrer"><code>hostPID: true</code> in the PodSpec</a>:</p>

<pre class="lang-yaml prettyprint-override"><code>spec:
  hostPID: true
  containers:
  - name: show-init
    command:
    - ps
    - -p
    - "1"
</code></pre>

<p>should, in theory, output "/sbin/init" since it is running in the host's PID namespace</p>
