fix: set fsGroupPolicy as ReadWriteOnceWithFSType by default
This commit is contained in:
parent
5a59082977
commit
8357f90c8f
|
|
@ -26,7 +26,6 @@ Please refer to [`nfs.csi.k8s.io` driver parameters](./docs/driver-parameters.md
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
- [Basic usage](./deploy/example/README.md)
|
- [Basic usage](./deploy/example/README.md)
|
||||||
- [fsGroupPolicy](./deploy/example/fsgroup)
|
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
- [CSI driver troubleshooting guide](./docs/csi-debug.md)
|
- [CSI driver troubleshooting guide](./docs/csi-debug.md)
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
|
||||||
|---------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------|
|
|---------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------|
|
||||||
| `driver.name` | alternative driver name | `nfs.csi.k8s.io` |
|
| `driver.name` | alternative driver name | `nfs.csi.k8s.io` |
|
||||||
| `driver.mountPermissions` | mounted folder permissions name | `0777`
|
| `driver.mountPermissions` | mounted folder permissions name | `0777`
|
||||||
| `feature.enableFSGroupPolicy` | enable `fsGroupPolicy` on a k8s 1.20+ cluster | `true` |
|
|
||||||
| `feature.enableInlineVolume` | enable inline volume | `false` |
|
| `feature.enableInlineVolume` | enable inline volume | `false` |
|
||||||
| `kubeletDir` | alternative kubelet directory | `/var/lib/kubelet` |
|
| `kubeletDir` | alternative kubelet directory | `/var/lib/kubelet` |
|
||||||
| `image.nfs.repository` | csi-driver-nfs image | `registry.k8s.io/sig-storage/nfsplugin` |
|
| `image.nfs.repository` | csi-driver-nfs image | `registry.k8s.io/sig-storage/nfsplugin` |
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -10,6 +10,4 @@ spec:
|
||||||
{{- if .Values.feature.enableInlineVolume}}
|
{{- if .Values.feature.enableInlineVolume}}
|
||||||
- Ephemeral
|
- Ephemeral
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if .Values.feature.enableFSGroupPolicy}}
|
fsGroupPolicy: ReadWriteOnceWithFSType
|
||||||
fsGroupPolicy: File
|
|
||||||
{{- end}}
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ driver:
|
||||||
mountPermissions: 0777
|
mountPermissions: 0777
|
||||||
|
|
||||||
feature:
|
feature:
|
||||||
enableFSGroupPolicy: true
|
|
||||||
enableInlineVolume: false
|
enableInlineVolume: false
|
||||||
|
|
||||||
kubeletDir: /var/lib/kubelet
|
kubeletDir: /var/lib/kubelet
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ spec:
|
||||||
volumeLifecycleModes:
|
volumeLifecycleModes:
|
||||||
- Persistent
|
- Persistent
|
||||||
- Ephemeral
|
- Ephemeral
|
||||||
fsGroupPolicy: File
|
fsGroupPolicy: ReadWriteOnceWithFSType
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
# fsGroup Support
|
|
||||||
|
|
||||||
[fsGroupPolicy](https://kubernetes-csi.github.io/docs/support-fsgroup.html) feature is Beta from Kubernetes 1.20, and disabled by default, follow below steps to enable this feature.
|
|
||||||
|
|
||||||
### Option#1: Enable fsGroupPolicy support in [driver helm installation](../../../charts)
|
|
||||||
|
|
||||||
add `--set feature.enableFSGroupPolicy=true` in helm installation command.
|
|
||||||
|
|
||||||
### Option#2: Enable fsGroupPolicy support on a cluster with CSI driver already installed
|
|
||||||
|
|
||||||
```console
|
|
||||||
kubectl delete CSIDriver nfs.csi.k8s.io
|
|
||||||
cat <<EOF | kubectl create -f -
|
|
||||||
apiVersion: storage.k8s.io/v1beta1
|
|
||||||
kind: CSIDriver
|
|
||||||
metadata:
|
|
||||||
name: nfs.csi.k8s.io
|
|
||||||
spec:
|
|
||||||
attachRequired: false
|
|
||||||
volumeLifecycleModes:
|
|
||||||
- Persistent
|
|
||||||
fsGroupPolicy: File
|
|
||||||
EOF
|
|
||||||
```
|
|
||||||
Loading…
Reference in New Issue