Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
rook-ceph: Allow volume resizing
Browse files Browse the repository at this point in the history
This adds parameters to the storage class `rook-ceph-block` created by
rook-ceph component. This will enable the PVs created by the storage
class to be resized on the fly.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Jun 18, 2020
1 parent 8a9b2c7 commit 4ce74b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/components/rook-ceph/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ metadata:
{{- if .StorageClass.Default }}
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
allowVolumeExpansion: true
provisioner: {{ .Namespace }}.rbd.csi.ceph.com
parameters:
clusterID: {{ .Namespace }}
Expand All @@ -127,6 +128,8 @@ parameters:
csi.storage.k8s.io/provisioner-secret-namespace: {{ .Namespace }}
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: {{ .Namespace }}
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: {{ .Namespace }}
# Specify the filesystem type of the volume. If not specified, csi-provisioner
# will set default as 'ext4'.
Expand Down

0 comments on commit 4ce74b7

Please sign in to comment.