From: Ilya Dryomov Date: Mon, 19 Apr 2021 09:08:22 +0000 (+0200) Subject: doc/rbd/rbd-kubernetes: expose volume expansion functionality X-Git-Tag: v17.1.0~2203^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6f77102706f2533668bf73e2b2c785a90c20f18f;p=ceph.git doc/rbd/rbd-kubernetes: expose volume expansion functionality Signed-off-by: Ilya Dryomov --- diff --git a/doc/rbd/rbd-kubernetes.rst b/doc/rbd/rbd-kubernetes.rst index 00876c35d0fd0..1be9a0f133591 100644 --- a/doc/rbd/rbd-kubernetes.rst +++ b/doc/rbd/rbd-kubernetes.rst @@ -211,14 +211,20 @@ pool created above, the following YAML file can be used after ensuring that the imageFeatures: layering csi.storage.k8s.io/provisioner-secret-name: csi-rbd-secret csi.storage.k8s.io/provisioner-secret-namespace: default + csi.storage.k8s.io/controller-expand-secret-name: csi-rbd-secret + csi.storage.k8s.io/controller-expand-secret-namespace: default csi.storage.k8s.io/node-stage-secret-name: csi-rbd-secret csi.storage.k8s.io/node-stage-secret-namespace: default reclaimPolicy: Delete + allowVolumeExpansion: true mountOptions: - discard EOF $ kubectl apply -f csi-rbd-sc.yaml +Note that in Kubernetes v1.14 and v1.15 volume expansion feature was in alpha +status and required enabling `ExpandCSIVolumes` feature gate. + Create a `PersistentVolumeClaim` --------------------------------