From a3c0d6374ab40ba50f7f2b864f4ac34f2a2b7e83 Mon Sep 17 00:00:00 2001 From: srinathmatti Date: Mon, 18 Jan 2021 13:16:41 +0530 Subject: [PATCH] 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. --- deploy/csi-nfs-controller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/csi-nfs-controller.yaml b/deploy/csi-nfs-controller.yaml index d7f44bec..aa352ffc 100644 --- a/deploy/csi-nfs-controller.yaml +++ b/deploy/csi-nfs-controller.yaml @@ -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