Skip to content

Commit

Permalink
Merge pull request #554 from andyzhangx/fix-readonly-doc
Browse files Browse the repository at this point in the history
doc: fix readOnly setting doc
  • Loading branch information
andyzhangx authored Nov 28, 2023
2 parents e45560b + ed53ff2 commit 1499d02
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/example/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
volumeMounts:
- name: nfs
mountPath: "/mnt/nfs"
readOnly: false
volumes:
- name: nfs
persistentVolumeClaim:
Expand Down
2 changes: 1 addition & 1 deletion deploy/example/nfs-provisioner/nginx-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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##
Expand Down Expand Up @@ -50,6 +49,7 @@ spec:
volumeMounts:
- mountPath: /var/www
name: pvc-nginx
readOnly: false
volumes:
- name: pvc-nginx
persistentVolumeClaim:
Expand Down
1 change: 1 addition & 0 deletions deploy/example/nginx-pod-inline-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
volumeMounts:
- name: persistent-storage
mountPath: "/mnt/nfs"
readOnly: false
volumes:
- name: persistent-storage
csi:
Expand Down
1 change: 0 additions & 1 deletion deploy/example/pv-nfs-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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##
Expand Down
1 change: 1 addition & 0 deletions deploy/example/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
volumeMounts:
- name: persistent-storage
mountPath: /mnt/nfs
readOnly: false
updateStrategy:
type: RollingUpdate
selector:
Expand Down

0 comments on commit 1499d02

Please sign in to comment.