Unable to mount PersistentVolume when NFS service uses FQDN in RHOCP 4
Issue
-
Cannot use
NFSserver configured as pods in RHOCP 4 cluster forPersistentVolumevia service FQDN, likenfs-server.build.svc.cluster.local. -
The pod stuck in
ContainerCreatingstate with below error:
Output: mount.nfs: Failed to resolve server nfs-server.build.svc.cluster.local: Name or service not known
- Changing the Service FQDN to ClusterIP works fine and volume gets mounted onto the pod.
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.