Add noresvport to the nfs mount options

This makes the nfs client use a new src port for each tcp reconnect.
This way after a crash the faulty connection isn't kept alive in the
connection cache (nat). This should allow to resolve the cluster ip to
the new destination pod ip.

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
This commit is contained in:
Joshua Moody 2020-06-15 18:41:08 -07:00 committed by Sheng Yang
parent 8969d829f2
commit f70ee1063d

View File

@ -167,3 +167,4 @@ metadata:
provisioner: nfs.longhorn.io provisioner: nfs.longhorn.io
mountOptions: mountOptions:
- "vers=4.1" - "vers=4.1"
- "noresvport"