From ed53ff2daa251b2c6ea38c5ea2885c57c30bd4ae Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Mon, 27 Nov 2023 13:13:53 +0000 Subject: [PATCH] doc: fix readOnly setting doc --- deploy/example/deployment.yaml | 1 + deploy/example/nfs-provisioner/nginx-pod.yaml | 2 +- deploy/example/nginx-pod-inline-volume.yaml | 1 + deploy/example/pv-nfs-csi.yaml | 1 - deploy/example/statefulset.yaml | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/example/deployment.yaml b/deploy/example/deployment.yaml index adbc1ad3d..216ff304d 100644 --- a/deploy/example/deployment.yaml +++ b/deploy/example/deployment.yaml @@ -38,6 +38,7 @@ spec: volumeMounts: - name: nfs mountPath: "/mnt/nfs" + readOnly: false volumes: - name: nfs persistentVolumeClaim: diff --git a/deploy/example/nfs-provisioner/nginx-pod.yaml b/deploy/example/nfs-provisioner/nginx-pod.yaml index b00d5b05b..236e365c1 100644 --- a/deploy/example/nfs-provisioner/nginx-pod.yaml +++ b/deploy/example/nfs-provisioner/nginx-pod.yaml @@ -15,7 +15,6 @@ spec: - nfsvers=4.1 csi: driver: nfs.csi.k8s.io - readOnly: false # volumeHandle format: {nfs-server-address}#{sub-dir-name}#{share-name} # make sure this value is unique for every share in the cluster volumeHandle: nfs-server.default.svc.cluster.local/share## @@ -50,6 +49,7 @@ spec: volumeMounts: - mountPath: /var/www name: pvc-nginx + readOnly: false volumes: - name: pvc-nginx persistentVolumeClaim: diff --git a/deploy/example/nginx-pod-inline-volume.yaml b/deploy/example/nginx-pod-inline-volume.yaml index 9022e10c4..2ef27c012 100644 --- a/deploy/example/nginx-pod-inline-volume.yaml +++ b/deploy/example/nginx-pod-inline-volume.yaml @@ -16,6 +16,7 @@ spec: volumeMounts: - name: persistent-storage mountPath: "/mnt/nfs" + readOnly: false volumes: - name: persistent-storage csi: diff --git a/deploy/example/pv-nfs-csi.yaml b/deploy/example/pv-nfs-csi.yaml index 6f2f9546e..fc23c51c7 100644 --- a/deploy/example/pv-nfs-csi.yaml +++ b/deploy/example/pv-nfs-csi.yaml @@ -16,7 +16,6 @@ spec: - nfsvers=4.1 csi: driver: nfs.csi.k8s.io - readOnly: false # volumeHandle format: {nfs-server-address}#{sub-dir-name}#{share-name} # make sure this value is unique for every share in the cluster volumeHandle: nfs-server.default.svc.cluster.local/share## diff --git a/deploy/example/statefulset.yaml b/deploy/example/statefulset.yaml index 2e9a855cf..d8252337a 100644 --- a/deploy/example/statefulset.yaml +++ b/deploy/example/statefulset.yaml @@ -25,6 +25,7 @@ spec: volumeMounts: - name: persistent-storage mountPath: /mnt/nfs + readOnly: false updateStrategy: type: RollingUpdate selector: