Skip to content

Commit

Permalink
Documenting FlexVolume Resize alpha feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmaroutu committed Nov 19, 2018
1 parent e24a059 commit e2afbea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/en/docs/concepts/storage/persistent-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,19 @@ kubectl describe pvc <pvc_name>
```

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

#### Resizing an in-use PersistentVolumeClaim

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

{{< feature-state for_k8s_version="v1.11" state="alpha" >}}

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

0 comments on commit e2afbea

Please sign in to comment.