democratic-csi: Enable volume resize
_democratic-csi_ can also dynamically resize Synology iSCSI LUNs when PVC resource requests increase. This requires enabling the external resizer in the controller pod and marking the StorageClass as supporting resize.
This commit is contained in:
@@ -270,6 +270,34 @@ spec:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: metadata.name
|
||||
- name: external-resizer
|
||||
image: "registry.k8s.io/sig-storage/csi-resizer:v1.9.0"
|
||||
args:
|
||||
- --v=5
|
||||
- --leader-election
|
||||
- --leader-election-namespace=democratic-csi
|
||||
- --timeout=90s
|
||||
- --workers=10
|
||||
- --csi-address=/csi-data/csi.sock
|
||||
volumeMounts:
|
||||
- mountPath: /csi-data
|
||||
name: socket-dir
|
||||
env:
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
- name: NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: metadata.name
|
||||
# https://github.com/kubernetes-csi/external-snapshotter
|
||||
# beware upgrading version:
|
||||
# - https://github.com/rook/rook/issues/4178
|
||||
|
||||
@@ -2,6 +2,7 @@ apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: synology-iscsi
|
||||
allowVolumeExpansion: true
|
||||
provisioner: org.democratic-csi.iscsi-synology
|
||||
parameters:
|
||||
fsType: xfs
|
||||
|
||||
Reference in New Issue
Block a user