<p>I have a 3 node test cluster: 1 head and 2 worker nodes (all raspberry pies). I would like to expose a specific folder on the head for read/write on each pod on the cluster (irregardless of which node they are running on).</p>
<p>E.g. my head node has this folder: <code>/media/usb/test</code>. I want to mount this to my pods' filesystem to the <code>mnt/test</code> directory. Is it possible?</p>
<p>My pods are deployed with this config:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: test-deploy
spec:
  replicas: 2
  selector:
    matchLabels:
      app: test
  template:
    metadata:
      labels:
        app: test
    spec:
      terminationGracePeriodSeconds: 5
      containers:
      - name: test
        image: rpi.home:5000/test
</code></pre>

<p>You could use <code>hostPath</code>. More in <a href="https://kubernetes.io/docs/concepts/storage/volumes/#hostpath" rel="nofollow noreferrer">here</a>.
It is also recommended not to use it.</p>
<blockquote>
<p>HostPath volumes present many security risks, and it is a best practice to avoid the use of HostPaths when possible. When a HostPath volume must be used, it should be scoped to only the required file or directory, and mounted as ReadOnly.</p>
</blockquote>
