# NFS and readOnlyRootFilesystem

**URL:** <https://discuss.kubernetes.io/t/nfs-and-readonlyrootfilesystem/17685>\
**Category:** General Discussions\
**Created:** [October 7, 2021, 5:26pm UTC](https://discuss.kubernetes.io/t/nfs-and-readonlyrootfilesystem/17685 "2021-10-07T17:26:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiasdebruijn](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tobiasdebruijn/32/8708_2.png) [@tobiasdebruijn](https://discuss.kubernetes.io/u/tobiasdebruijn)\
**Post date:** [October 7, 2021, 5:26pm UTC](https://discuss.kubernetes.io/t/nfs-and-readonlyrootfilesystem/17685/1 "2021-10-07T17:26:23Z")

</div>

### Cluster information:

Kubernetes version: `v1.21.3`  
Cloud being used: (put bare-metal if not on a public cloud): `bare-metal`  
Installation method: `kubeadm`  
Host OS: `Ubuntu 20.04`  
CNI and version:

```auto
cilium-cli: v0.8.5 compiled with go1.16.5 on linux/amd64
cilium image (default): v1.10.2
cilium image (stable): v1.10.4

```

CRI and version: `Containerd 1.5.2-0ubuntu1~20.04.3`

### The problem

Hi there,

I’m having some odd issues with NFS and `readOnlyRootFilesystem`. Whenever `readOnlyRootFilesystem` is set to true, NFS mounts will time out. Longhorn volumes work just fine though. I’ve verified that the NFS server and the requested path work fine.

When I turn `readOnlyRootFilesystem` to `false`, the pod will start within seconds, but when it is `true`, it will fail to start with

```auto
│ Warning FailedMount 51s (x5 over 9m42s) kubelet MountVolume.SetUp failed for volume "transmission-download" : mount failed: exit status 32 │
│Mounting command: mount │
│Mounting arguments: -t nfs storage-hdd.intern.array21.dev:/storage-pool/transmission /var/lib/kubelet/pods/6ba1db80-7a6e-4315-a684-3157d62774b4/volumes/kubernetes.io~nfs/transmission-download │
│Output: mount.nfs: Connection timed out │
│ Warning FailedMount 47s (x2 over 5m18s) kubelet Unable to attach or mount volumes: unmounted volumes=[transmission-download], unattached volumes=[transmission-data transmission-download]: timed out waiting for the condition

```

Any advice would be appreciated!

Thanks.
