From c2fa013be9c86a4a3ccadcfc25f8254d95c84ce2 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 1 Mar 2019 13:16:07 -0500 Subject: [PATCH 1/2] Document CSI update --- content/en/docs/concepts/storage/persistent-volumes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/concepts/storage/persistent-volumes.md b/content/en/docs/concepts/storage/persistent-volumes.md index ee66fdd81c0b4..9f1d5f7211121 100644 --- a/content/en/docs/concepts/storage/persistent-volumes.md +++ b/content/en/docs/concepts/storage/persistent-volumes.md @@ -181,6 +181,7 @@ However, the particular path specified in the custom recycler pod template in th {{< feature-state for_k8s_version="v1.8" state="alpha" >}} {{< feature-state for_k8s_version="v1.11" state="beta" >}} + Support for expanding PersistentVolumeClaims (PVCs) is now enabled by default. You can expand the following types of volumes: @@ -193,6 +194,9 @@ the following types of volumes: * Azure Disk * Portworx * FlexVolumes +* CSI + +CSI support is in alpha in 1.14 release and requires enabling `ExpandCSIVolumes` feature gate. You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true. From 96000e4b9ee2307040444e4c75a6c161e617e693 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 13 Mar 2019 14:38:05 -0400 Subject: [PATCH 2/2] Finish CSI documentation Also fix mistake with ExpandInUsePersistentVolumes documented as beta --- content/en/docs/concepts/storage/persistent-volumes.md | 10 +++++++--- .../command-line-tools-reference/feature-gates.md | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/content/en/docs/concepts/storage/persistent-volumes.md b/content/en/docs/concepts/storage/persistent-volumes.md index 9f1d5f7211121..e99c62dcd504b 100644 --- a/content/en/docs/concepts/storage/persistent-volumes.md +++ b/content/en/docs/concepts/storage/persistent-volumes.md @@ -179,7 +179,6 @@ However, the particular path specified in the custom recycler pod template in th ### Expanding Persistent Volumes Claims -{{< feature-state for_k8s_version="v1.8" state="alpha" >}} {{< feature-state for_k8s_version="v1.11" state="beta" >}} Support for expanding PersistentVolumeClaims (PVCs) is now enabled by default. You can expand @@ -196,8 +195,6 @@ the following types of volumes: * FlexVolumes * CSI -CSI support is in alpha in 1.14 release and requires enabling `ExpandCSIVolumes` feature gate. - You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true. ``` yaml @@ -218,6 +215,13 @@ To request a larger volume for a PVC, edit the PVC object and specify a larger size. This triggers expansion of the volume that backs the underlying `PersistentVolume`. A new `PersistentVolume` is never created to satisfy the claim. Instead, an existing volume is resized. +#### CSI Volume expansion + +{{< feature-state for_k8s_version="v1.14" state="alpha" >}} + +CSI volume expansion requires enabling `ExpandCSIVolumes` feature gate and also requires specific CSI driver to support volume expansion. Please refer to documentation of specific CSI driver for more information. + + #### Resizing a volume containing a file system You can only resize volumes containing a file system if the file system is XFS, Ext3, or Ext4. diff --git a/content/en/docs/reference/command-line-tools-reference/feature-gates.md b/content/en/docs/reference/command-line-tools-reference/feature-gates.md index 43dc0c9be627c..8e1d552b2ec46 100644 --- a/content/en/docs/reference/command-line-tools-reference/feature-gates.md +++ b/content/en/docs/reference/command-line-tools-reference/feature-gates.md @@ -79,8 +79,8 @@ different Kubernetes components. | `DynamicVolumeProvisioning` | `true` | Alpha | 1.3 | 1.7 | | `DynamicVolumeProvisioning` | `true` | GA | 1.8 | | | `EnableEquivalenceClassCache` | `false` | Alpha | 1.8 | | +| `ExpandCSIVolumes` | `false` | Alpha | 1.14 | | | | `ExpandInUsePersistentVolumes` | `false` | Alpha | 1.11 | 1.13 | | -| `ExpandInUsePersistentVolumes` | `true` | Beta | 1.14 | | | `ExpandPersistentVolumes` | `false` | Alpha | 1.8 | 1.10 | | `ExpandPersistentVolumes` | `true` | Beta | 1.11 | | | `ExperimentalCriticalPodAnnotation` | `false` | Alpha | 1.5 | |