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 27, 2018
1 parent e24a059 commit d97fdbe
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 @@ -192,6 +192,7 @@ the following types of volumes:
* Azure File
* Azure Disk
* Portworx
* FlexVolumes

You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true.

Expand Down Expand Up @@ -227,8 +228,17 @@ kubectl describe pvc <pvc_name>

If the `PersistentVolumeClaim` has the status `FileSystemResizePending`, it is safe to recreate the pod using the PersistentVolumeClaim.

FlexVolumes allow resize if the driver is set with the `RequiresFSResize` capability to true.
The FlexVolume can be resized on pod restart.

#### Resizing an in-use PersistentVolumeClaim

Expanding in-use PVCs for FlexVolumes is added in release 1.13. To enable this feature use `ExpandInUsePersistentVolumes` and `ExpandPersistentVolumes` feature gates. The `ExpandPersistentVolumes` feature gate is already enabled by default. If the `ExpandInUsePersistentVolumes` is set, FlexVolume can be resized online without pod restart.

{{< note >}}
**Note:** FlexVolume resize is possible only when the underlying driver supports resize.
{{< /note >}}

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

Please sign in to comment.