<p>I've recently started using NFS volumes for my clusters on-prem. This is the simplest and best solution for me, however it seems pretty limited in regards to the actual mounts options.</p>

<p>Is there anyway to set mount options on the node/cluster in the volume.yml files?</p>

<ul>
<li>NFSv3</li>
<li>NFSv4/4.1</li>
<li>lookupcache</li>
<li>noatime</li>
<li>rsize,wsize</li>
</ul>

<p>I have application that requires a specific version and also these mount options for performance.</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs
spec:
  capacity:
    storage: 1Mi
  accessModes:
    - ReadWriteMany
  nfs:
    # FIXME: use the right IP
    server: 10.244.1.4
    path: "/"
</code></pre>

<p>Is there anyway to add mount flags here?</p>

Bonn93
<p>If someone is looking for answers in 2021, here is what is working for me.</p>
<pre><code>  mountOptions:
    - hard
    - timeo=600
    - retrans=3
    - proto=tcp
    - nfsvers=4.2
    - port=2050
    - rsize=4096
    - wsize=4096
    - noacl
    - nocto
    - noatime
    - nodiratime
</code></pre>
