commit 7620f200f5ed02531149a0c8912dd5c471cb2b02
parent 7dc0209aa7bb8dfdea725328744ec3022a5f40b6
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 17 Sep 2023 21:12:05 +0200
try again
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/apps/production/nfs-csi.yaml b/apps/production/nfs-csi.yaml
@@ -88,8 +88,8 @@ spec:
labels:
app: csi-nfs-controller
spec:
- hostNetwork: true # controller also needs to mount nfs to create dir
- dnsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirst
+ #hostNetwork: true # controller also needs to mount nfs to create dir
+ #dnsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirst
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux # add "kubernetes.io/role: master" to run controller on master node
@@ -233,8 +233,8 @@ spec:
labels:
app: csi-nfs-node
spec:
- hostNetwork: true # original nfs connection would be broken without hostNetwork setting
- dnsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirst
+ #hostNetwork: true # original nfs connection would be broken without hostNetwork setting
+ #dnsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirst
serviceAccountName: csi-nfs-node-sa
priorityClassName: system-node-critical
securityContext:
@@ -357,7 +357,7 @@ metadata:
provisioner: nfs.csi.k8s.io
parameters:
server: nfs-server.nfs-server.svc.cluster.local
- share: /
+ share: /exports
subDir: ${pvc.metadata.namespace}-${pvc.metadata.name}
# csi.storage.k8s.io/provisioner-secret is only needed for providing mountOptions in DeleteVolume
# csi.storage.k8s.io/provisioner-secret-name: "mount-options"