Update csi-nfs-controller.yaml

Host network is needed for controller as the controller pod initial tries to mount it to nfs to create a directory structure. And for this it wont be able to access the rpc.statd on the underlying host.  

Mounting command: mount
Mounting arguments: -t nfs -o hard,nfsvers=3 192.168.125.3:/FS-SDC-U-TB4-01 /tmp/pvc-aacf7ffe-922b-4aae-aed6-2828e0234d87
Output: mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
This commit is contained in:
srinathmatti 2021-01-18 13:16:41 +05:30 committed by GitHub
parent 7271a3cc0f
commit a3c0d6374a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ spec:
labels:
app: csi-nfs-controller
spec:
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux