Kubernetes NFS volume mount fail with exit status 32

前端 未结 5 831
遥遥无期
遥遥无期 2020-12-24 16:02

I have a Kubernetes setup installed in my Ubuntu machine. I\'m trying to setup a nfs volume and mount it to a container according to this http://kubernetes.io/v1.1/examples/

5条回答
  •  抹茶落季
    2020-12-24 16:11

    In my case the issue was that i hadn't declared the host server of the nfs in the /etc/exports file. After adding an entry in there for my host server, the volume was working correctly.

    if you modify the file in anyway then you need restart the service too;

    sudo systemctl restart nfs-kernel-server
    

    An example of an entry in the /etc/exports file;

    /var/nfs/home   192.111.222.333(rw,sync,no_subtree_check)
    

提交回复
热议问题