Under Hyper-v I've create two Ubuntu VMs. The first creates a nfs server for /srv/nfs. /etc/exports /srv/nfs *(rw,sync,no_root_squash) The second can easily mount the nfs file system with this command as root or any user mount -t nfs 192.168.1.40:/srv/nfs /mnt/nfs so nfs server and client works great between the VMs. I start an alpine Kubernetes pod under windows docker, and remote shell into the pod. I can ping 192.168.1.40 fine under 1ms from the pod but the nfs mount command above always says... mount: /mnt/nfs: permission denied. The pod /mnt/nfs directory is present and I did a chmod 777 /mnt/nfs Worked on this for a couple days, but I'm baffled.
I beleive by default pods have complete egress permissions and the ping works fine. What is failing here? The pod is root, so if root works for a VM why doesn't it work for a pod as root? What component in K8s is restricting this from completing?