feat: propagate default host configuration files to csi node
This commit is contained in:
parent
3faec178b1
commit
fda9ff2f60
@ -47,6 +47,7 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
|
|||||||
| `driver.mountPermissions` | default mounted folder permissions | `0`
|
| `driver.mountPermissions` | default mounted folder permissions | `0`
|
||||||
| `feature.enableFSGroupPolicy` | enable [`fsGroupPolicy`](https://kubernetes.io/blog/2020/12/14/kubernetes-release-1.20-fsgroupchangepolicy-fsgrouppolicy/#allow-csi-drivers-to-declare-support-for-fsgroup-based-permissions) on a k8s 1.20+ cluster | `true` |
|
| `feature.enableFSGroupPolicy` | enable [`fsGroupPolicy`](https://kubernetes.io/blog/2020/12/14/kubernetes-release-1.20-fsgroupchangepolicy-fsgrouppolicy/#allow-csi-drivers-to-declare-support-for-fsgroup-based-permissions) on a k8s 1.20+ cluster | `true` |
|
||||||
| `feature.enableInlineVolume` | enable inline volume | `false` |
|
| `feature.enableInlineVolume` | enable inline volume | `false` |
|
||||||
|
| `feature.propagateHostMountOptions` | use the default host NFS mount configuration file [`/etc/nfsmount.conf`](https://man7.org/linux/man-pages/man5/nfsmount.conf.5.html) and/or the default host `/etc/nfsmount.d` mount configuration directory as source for mount options | `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` |
|
||||||
| `image.nfs.tag` | csi-driver-nfs image tag | `latest` |
|
| `image.nfs.tag` | csi-driver-nfs image tag | `latest` |
|
||||||
|
|||||||
Binary file not shown.
@ -125,6 +125,12 @@ spec:
|
|||||||
- name: pods-mount-dir
|
- name: pods-mount-dir
|
||||||
mountPath: {{ .Values.kubeletDir }}/pods
|
mountPath: {{ .Values.kubeletDir }}/pods
|
||||||
mountPropagation: "Bidirectional"
|
mountPropagation: "Bidirectional"
|
||||||
|
{{- if .Values.feature.propagateHostMountOptions }}
|
||||||
|
- name: host-nfsmount-conf
|
||||||
|
mountPath: /etc/nfsmount.conf
|
||||||
|
- name: host-nfsmount-conf-d
|
||||||
|
mountPath: /etc/nfsmount.conf.d
|
||||||
|
{{- end }}
|
||||||
resources: {{- toYaml .Values.node.resources.nfs | nindent 12 }}
|
resources: {{- toYaml .Values.node.resources.nfs | nindent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
@ -139,3 +145,13 @@ spec:
|
|||||||
path: {{ .Values.kubeletDir }}/plugins_registry
|
path: {{ .Values.kubeletDir }}/plugins_registry
|
||||||
type: Directory
|
type: Directory
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
|
{{- if .Values.feature.propagateHostMountOptions }}
|
||||||
|
- hostPath:
|
||||||
|
path: /etc/nfsmount.conf
|
||||||
|
type: FileOrCreate
|
||||||
|
name: host-nfsmount-conf
|
||||||
|
- hostPath:
|
||||||
|
path: /etc/nfsmount.conf.d
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
name: host-nfsmount-conf-d
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@ -41,6 +41,7 @@ driver:
|
|||||||
feature:
|
feature:
|
||||||
enableFSGroupPolicy: true
|
enableFSGroupPolicy: true
|
||||||
enableInlineVolume: false
|
enableInlineVolume: false
|
||||||
|
propagateHostMountOptions: false
|
||||||
|
|
||||||
kubeletDir: /var/lib/kubelet
|
kubeletDir: /var/lib/kubelet
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user