deploy: add resize support to NFS-provisioner deployment

Resizing is handled by the csi-resizer container, which needs to run in
the provisioner Pod. In addition to the container, the StorageClass also
needs to allow volume expansion.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-05-02 13:18:20 +02:00 committed by mergify[bot]
parent 36e51402cb
commit 891a840aa6
2 changed files with 17 additions and 1 deletions

View File

@ -54,6 +54,22 @@ spec:
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi
- name: csi-resizer
image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0
args:
- "--csi-address=$(ADDRESS)"
- "--v=5"
- "--timeout=150s"
- "--leader-election"
- "--retry-interval-start=500ms"
- "--handle-volume-inuse-error=false"
env:
- name: ADDRESS
value: unix:///csi/csi-provisioner.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-nfsplugin - name: csi-nfsplugin
# for stable functionality replace canary with latest release version # for stable functionality replace canary with latest release version
image: quay.io/cephcsi/cephcsi:canary image: quay.io/cephcsi/cephcsi:canary

View File

@ -46,4 +46,4 @@ parameters:
volumeNamePrefix: nfs-export- volumeNamePrefix: nfs-export-
reclaimPolicy: Delete reclaimPolicy: Delete
allowVolumeExpansion: false allowVolumeExpansion: true