Recently I got the following error while trying to use a NFS PVC in one of my lab deployments running the following command from the worker node:
journalctl -u kubelet
MountVolume.MountDevice failed for volume "..." : rpc error: code = Internal desc = mount failed: exit status 32...
The following steps were needed to solve this issue:
- Installed nfs-utils in the worker nodes. These a RHEL based machines, so “yum install nfs-utils” installs it on the machines.
- Use kubelet logs to identify the problem. Using the command “journalctl -lu kubelet.service”. In my case, the following line was relevant:
kubelet[7512]: Output: mount.nfs: Protocol not supported
For the problem above, the fix was to adjust the exports of the NFS server to accept requests from the worker’s subnet.
Deixe um comentário