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 20, 2018
1 parent e24a059 commit df79bf9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,22 @@ 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`.
The flex driver should implement ExpandableVolumePlugin interface only if it is to be installed on the controller/master.
The flex driver should implement any volume expansion methods along with FS resize in ExpandFS method if the flex driver
is installed on the worker nodes but not on the controller/master node.

{{< 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 df79bf9

Please sign in to comment.