Kubernetes, cannot mount NFS share via DNS
As pointed out by @Giorgio Cerruti and as referenced in this github ticket among others this is currently not possible as the node needs to be able to resolve the DNS entry and it does not resolve kube-dns. Two possible solutions are:
- Update
/etc/hosts
of each kubernetes node to resolve the NFS endpoint (as per update above). This is a primitive solution. A more robust fix that would work for this NFS service and any other remote service in the same domain (as NFS) is to add the remote DNS server to the kubernetes nodes
resolv.conf
someolddomain.org service.domain xx.xxx.xxnameserver 10.10.0.12nameserver 192.168.20.22nameserver 8.8.4.4