Skip to content

Commit 511f3a0

Browse files
committed
Documenting FlexVolume Resize alpha feature.
1 parent 1ea8f96 commit 511f3a0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

content/en/docs/concepts/storage/persistent-volumes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,19 @@ kubectl describe pvc <pvc_name>
222222
```
223223

224224
If the `PersistentVolumeClaim` has the status `FileSystemResizePending`, it is safe to recreate the pod using the PersistentVolumeClaim.
225+
{{< feature-state for_k8s_version="v1.12" state="alpha" >}}
226+
FlexVolumes allow resize if the driver is set with the `RequiresFSResize` capability to true. Since this is a alpha feature
227+
both `ExpandInUsePersistentVolumes` and `ExpandPersistentVolumes` feature gates must be enabled.
225228

226229
#### Resizing an in-use PersistentVolumeClaim
227230

231+
{{< feature-state for_k8s_version="v1.12" state="alpha" >}}
232+
Expanding in-use PVCs for FlexVolumes is an alpha feature. To enable this feature use `ExpandInUsePersistentVolumes`
233+
and `ExpandPersistentVolumes` feature gates. The FlexVolume plugin uses RequiresFSResize to identify and resize the
234+
Persistent Volume. The underlying driver must support resize, if not an error will be returned and Persistent Volume
235+
object will not change and the expand request will fail. FlexVolume driver must implement the method `ExpandFS` defined
236+
in the interface `FSResizableVolumePlugin` along with `ExpandableVolumePlugin` interface and its method `ExpandVolumeDevice`.
237+
228238
{{< feature-state for_k8s_version="v1.11" state="alpha" >}}
229239

230240
Expanding in-use PVCs is an alpha feature. To use it, enable the `ExpandInUsePersistentVolumes` feature gate.

0 commit comments

Comments
 (0)