Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#639 from andyzhangx/refine-docs
Browse files Browse the repository at this point in the history
doc: refine static PV docs
  • Loading branch information
andyzhangx authored Apr 2, 2022
2 parents c8d2c58 + cae9841 commit c3fb352
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deploy/example/deployment-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storage: 10Gi
storageClassName: blob-nfs
---
apiVersion: apps/v1
Expand Down
2 changes: 1 addition & 1 deletion deploy/example/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storage: 10Gi
storageClassName: blob
---
apiVersion: apps/v1
Expand Down
2 changes: 2 additions & 0 deletions deploy/example/nfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ metadata:
provisioner: blob.csi.azure.com
parameters:
protocol: nfs
mountOptions:
- nconnect=8 # only supported on linux kernel version >= 5.3
```
run following command to create a storage class:
Expand Down
1 change: 1 addition & 0 deletions deploy/example/pv-blobfuse-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # "Delete" is not supported in static provisioning
storageClassName: blob
mountOptions:
- -o allow_other
- --file-cache-timeout-in-seconds=120
Expand Down
1 change: 1 addition & 0 deletions deploy/example/pv-blobfuse-csi-keyvault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # If set as "Delete" container would be removed after pvc deletion
storageClassName: blob
csi:
driver: blob.csi.azure.com
readOnly: false
Expand Down
3 changes: 2 additions & 1 deletion deploy/example/pv-blobfuse-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ spec:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # "Delete" is not supported in static provisioning
persistentVolumeReclaimPolicy: Retain # If set as "Delete" container would be removed after pvc deletion
storageClassName: blob
mountOptions:
- -o allow_other
- --file-cache-timeout-in-seconds=120
Expand Down
5 changes: 3 additions & 2 deletions deploy/example/pv-blobfuse-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ spec:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # "Delete" is not supported in static provisioning
persistentVolumeReclaimPolicy: Retain # If set as "Delete" container would be removed after pvc deletion
storageClassName: blob-nfs
mountOptions:
- nconnect=8
- nconnect=8 # only supported on linux kernel version >= 5.3
csi:
driver: blob.csi.azure.com
readOnly: false
Expand Down
2 changes: 1 addition & 1 deletion deploy/example/pvc-blob-csi-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
requests:
storage: 10Gi
volumeName: pv-blob
storageClassName: ""
storageClassName: blob # set as "blob-nfs" for nfs
2 changes: 1 addition & 1 deletion deploy/example/storageclass-blob-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ parameters:
volumeBindingMode: Immediate
allowVolumeExpansion: true
mountOptions:
- nconnect=8
- nconnect=8 # only supported on linux kernel version >= 5.3

0 comments on commit c3fb352

Please sign in to comment.