fix: add hostNetwork in controller

This commit is contained in:
andyzhangx 2021-02-23 06:42:49 +00:00
parent c4765d1faa
commit 425d715bae
3 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ spec:
{{ include "nfs.labels" . | indent 6 }}
app: csi-nfs-controller
spec:
hostNetwork: true # controller also needs to mount nfs to create dir
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux

View File

@ -14,6 +14,8 @@ spec:
labels:
app: csi-nfs-controller
spec:
hostNetwork: true # controller also needs to mount nfs to create dir
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux # add "kubernetes.io/role: master" to run controller on master node