Skip to content

Commit 3362d3c

Browse files
authored
Merge pull request #30704 from sftim/20211201_tweak_flex_volume_deprecation
Tweak flexVolume deprecation
2 parents bc246a3 + d09282b commit 3362d3c

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,19 @@ to `Retain`, including cases where you are reusing an existing PV.
221221

222222
{{< feature-state for_k8s_version="v1.11" state="beta" >}}
223223

224-
Support for expanding PersistentVolumeClaims (PVCs) is now enabled by default. You can expand
224+
Support for expanding PersistentVolumeClaims (PVCs) is enabled by default. You can expand
225225
the following types of volumes:
226226

227-
* gcePersistentDisk
227+
* azureDisk
228+
* azureFile
228229
* awsElasticBlockStore
229-
* Cinder
230+
* cinder (deprecated)
231+
* {{< glossary_tooltip text="csi" term_id="csi" >}}
232+
* flexVolume (deprecated)
233+
* gcePersistentDisk
230234
* glusterfs
231235
* rbd
232-
* Azure File
233-
* Azure Disk
234-
* Portworx
235-
* FlexVolumes
236-
* {{< glossary_tooltip text="CSI" term_id="csi" >}}
236+
* portworxVolume
237237

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

@@ -270,8 +270,8 @@ When a volume contains a file system, the file system is only resized when a new
270270
the PersistentVolumeClaim in `ReadWrite` mode. File system expansion is either done when a Pod is starting up
271271
or when a Pod is running and the underlying file system supports online expansion.
272272

273-
FlexVolumes allow resize if the driver is set with the `RequiresFSResize` capability to `true`.
274-
The FlexVolume can be resized on Pod restart.
273+
FlexVolumes (deprecated since Kubernetes v1.23) allow resize if the driver is configured with the
274+
`RequiresFSResize` capability to `true`. The FlexVolume can be resized on Pod restart.
275275

276276
#### Resizing an in-use PersistentVolumeClaim
277277

@@ -362,10 +362,10 @@ PersistentVolume types are implemented as plugins. Kubernetes currently supports
362362

363363
The following types of PersistentVolume are deprecated. This means that support is still available but will be removed in a future Kubernetes release.
364364

365-
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
366-
(**deprecated** in v1.23)
367365
* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
368366
(**deprecated** in v1.18)
367+
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
368+
(**deprecated** in v1.23)
369369
* [`flocker`](/docs/concepts/storage/volumes/#flocker) - Flocker storage
370370
(**deprecated** in v1.22)
371371
* [`quobyte`](/docs/concepts/storage/volumes/#quobyte) - Quobyte volume

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,7 @@ To learn about requesting space using a resource specification, see
11551155
## Out-of-tree volume plugins
11561156

11571157
The out-of-tree volume plugins include
1158-
{{< glossary_tooltip text="Container Storage Interface" term_id="csi" >}} (CSI)
1159-
and FlexVolume. These plugins enable storage vendors to create custom storage plugins
1158+
{{< glossary_tooltip text="Container Storage Interface" term_id="csi" >}} (CSI), and also FlexVolume (which is deprecated). These plugins enable storage vendors to create custom storage plugins
11601159
without adding their plugin source code to the Kubernetes repository.
11611160

11621161
Previously, all volume plugins were "in-tree". The "in-tree" plugins were built, linked, compiled,
@@ -1289,16 +1288,20 @@ are listed in [Types of Volumes](#volume-types).
12891288

12901289
### flexVolume
12911290

1292-
FlexVolume is an out-of-tree plugin interface that has existed in Kubernetes
1293-
since version 1.2 (before CSI). It uses an exec-based model to interface with
1294-
drivers. The FlexVolume driver binaries must be installed in a pre-defined volume
1295-
plugin path on each node and in some cases the control plane nodes as well.
1291+
{{< feature-state for_k8s_version="v1.23" state="deprecated" >}}
12961292

1297-
Pods interact with FlexVolume drivers through the `flexvolume` in-tree volume plugin.
1298-
For more details, see the [FlexVolume](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md) examples.
1293+
FlexVolume is an out-of-tree plugin interface that uses an exec-based model to interface
1294+
with storage drivers. The FlexVolume driver binaries must be installed in a pre-defined
1295+
volume plugin path on each node and in some cases the control plane nodes as well.
1296+
1297+
Pods interact with FlexVolume drivers through the `flexVolume` in-tree volume plugin.
1298+
For more details, see the FlexVolume [README](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md#readme) document.
12991299

13001300
{{< note >}}
1301-
FlexVolume is deprecated starting v1.23. Out-of-tree CSI driver is the recommended way to write volume driver in Kubernetes. Maintainers of FlexVolume driver should implement a CSI Driver and move users of FlexVolume to CSI. Users of FlexVolume should move their workloads to CSI Driver.
1301+
FlexVolume is deprecated. Using an out-of-tree CSI driver is the recommended way to integrate external storage with Kubernetes.
1302+
1303+
Maintainers of FlexVolume driver should implement a CSI Driver and help to migrate users of FlexVolume drivers to CSI.
1304+
Users of FlexVolume should move their workloads to use the equivalent CSI Driver.
13021305
{{< /note >}}
13031306

13041307
## Mount propagation

0 commit comments

Comments
 (0)