Merge pull request #168 from andyzhangx/controller-hostnetwork

fix: add hostNetwork in controller
This commit is contained in:
Andy Zhang 2021-02-23 15:27:39 +08:00 committed by GitHub
commit b35fa7571d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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