@@ -23,7 +23,7 @@ weight: 10
23
23
<!-- overview -->
24
24
25
25
<!--
26
- Kubernetes _volumes_ provide a way for containers in a {{< glossary_tooltip text="pods " term_id="pod" >}}
26
+ Kubernetes _volumes_ provide a way for containers in a {{< glossary_tooltip text="pod " term_id="pod" >}}
27
27
to access and share data via the filesystem. There are different kinds of volume that you can use for different purposes,
28
28
such as:
29
29
-->
@@ -230,62 +230,26 @@ Kubernetes 项目建议你转为使用 [Azure Disk](https://github.com/kubernete
230
230
-->
231
231
### azureFile (已弃用) {#azurefile}
232
232
233
- {{< feature-state for_k8s_version="v1.21" state="deprecated" >}}
234
-
235
- <!--
236
- The `azureFile` volume type mounts a Microsoft Azure File volume (SMB 2.1 and 3.0)
237
- into a pod.
238
-
239
- For more details, see the
240
- [`azureFile` volume plugin](https://github.com/kubernetes/examples/tree/master/staging/volumes/azure_file/README.md).
241
- -->
242
- ` azureFile ` 卷类型用来在 Pod 上挂载 Microsoft Azure 文件卷(File Volume)(SMB 2.1 和 3.0)。
243
-
244
- 更多详情请参考
245
- [ ` azureFile ` 卷插件] ( https://github.com/kubernetes/examples/tree/master/staging/volumes/azure_file/README.md ) 。
246
-
247
- <!--
248
- #### azureFile CSI migration
249
- -->
250
- #### azureFile CSI 迁移 {#azurefile-csi-migration}
251
-
252
- {{< feature-state for_k8s_version="v1.26" state="stable" >}}
233
+ <!-- maintenance note: OK to remove all mention of azureFile once the v1.30 release of
234
+ Kubernetes has gone out of support -->
253
235
254
236
<!--
255
- The `CSIMigration` feature for `azureFile`, when enabled, redirects all plugin operations
256
- from the existing in-tree plugin to the `file.csi.azure.com` Container
257
- Storage Interface (CSI) Driver. In order to use this feature, the [Azure File CSI
258
- Driver](https://github.com/kubernetes-sigs/azurefile-csi-driver)
259
- must be installed on the cluster and the `CSIMigrationAzureFile`
260
- [feature gates](/docs/reference/command-line-tools-reference/feature-gates/) must be enabled.
261
- -->
262
- 启用 ` azureFile ` 的 ` CSIMigration ` 特性后,所有插件操作将从现有的树内插件重定向到
263
- ` file.csi.azure.com ` 容器存储接口(CSI)驱动程序。要使用此特性,必须在集群中安装
264
- [ Azure 文件 CSI 驱动程序] ( https://github.com/kubernetes-sigs/azurefile-csi-driver ) ,
265
- 并且 ` CSIMigrationAzureFile `
266
- [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ )
267
- 必须被启用。
237
+ In Kubernetes {{< skew currentVersion >}}, all operations for the in-tree `azureFile` type
238
+ are redirected to the `file.csi.azure.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} driver.
268
239
269
- <!--
270
- Azure File CSI driver does not support using the same volume with different fsgroups. If
271
- `CSIMigrationAzureFile` is enabled, using same volume with different fsgroups won't be supported at all.
272
- -->
273
- Azure 文件 CSI 驱动尚不支持为同一卷设置不同的 fsgroup。
274
- 如果 ` CSIMigrationAzureFile ` 特性被启用,用不同的 fsgroup 来使用同一卷也是不被支持的。
240
+ The AzureFile in-tree storage driver was deprecated in the Kubernetes v1.21 release
241
+ and then removed entirely in the v1.30 release.
275
242
276
- <!--
277
- #### azureFile CSI migration complete
243
+ The Kubernetes project suggests that you use the [Azure File](https://github.com/kubernetes-sigs/azurefile-csi-driver)
244
+ third party storage driver instead.
278
245
-->
279
- #### azureFile CSI 迁移完成
246
+ 在 Kubernetes {{< skew currentVersion >}} 中,所有针对树内 ` azureFile ` 类型的操作都会被重定向到
247
+ ` file.csi.azure.com ` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动。
280
248
281
- {{< feature-state for_k8s_version=" v1.21" state="alpha" >}}
249
+ AzureFile 树内存储驱动在 Kubernetes v1.21 版本中被弃用,并在 v1.30 版本中被完全移除。
282
250
283
- <!--
284
- To disable the `azureFile` storage plugin from being loaded by the controller manager
285
- and the kubelet, set the `InTreePluginAzureFileUnregister` flag to `true`.
286
- -->
287
- 要禁止控制器管理器和 kubelet 加载 ` azureFile ` 存储插件,
288
- 请将 ` InTreePluginAzureFileUnregister ` 标志设置为 ` true ` 。
251
+ Kubernetes 项目建议你改为使用 [ Azure File] ( https://github.com/kubernetes-sigs/azurefile-csi-driver )
252
+ 第三方存储驱动。
289
253
290
254
<!--
291
255
### cephfs (removed) {#cephfs}
@@ -1579,103 +1543,27 @@ For more details, see [Configuring Secrets](/docs/concepts/configuration/secret/
1579
1543
-->
1580
1544
# ## vsphereVolume(已弃用) {#vspherevolume}
1581
1545
1582
- {{< note >}}
1583
- <!--
1584
- The Kubernetes project recommends using the [vSphere CSI](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1585
- out-of-tree storage driver instead.
1586
- -->
1587
- Kubernetes 项目建议转为使用 [vSphere CSI](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1588
- 树外存储驱动。
1589
- {{< /note >}}
1590
-
1591
- <!--
1592
- A `vsphereVolume` is used to mount a vSphere VMDK volume into your Pod. The contents
1593
- of a volume are preserved when it is unmounted. It supports both VMFS and VSAN datastore.
1594
- -->
1595
- ` vsphereVolume` 用来将 vSphere VMDK 卷挂载到你的 Pod 中。
1596
- 在卸载卷时,卷的内容会被保留。
1597
- vSphereVolume 卷类型支持 VMFS 和 VSAN 数据仓库。
1598
-
1599
- <!--
1600
- For more information, see the
1601
- [vSphere volume](https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere) examples.
1602
- -->
1603
- 进一步信息可参考
1604
- [vSphere 卷](https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere)。
1605
-
1606
- <!--
1607
- # ### vSphere CSI migration {#vsphere-csi-migration}
1608
- -->
1609
- # ### vSphere CSI 迁移 {#vsphere-csi-migration}
1610
-
1611
- {{< feature-state for_k8s_version="v1.26" state="stable" >}}
1546
+ <!-- maintenance note : OK to remove all mention of vsphereVolume once the v1.30 release of
1547
+ Kubernetes has gone out of support -->
1612
1548
1613
1549
<!--
1614
1550
In Kubernetes {{< skew currentVersion >}}, all operations for the in-tree `vsphereVolume` type
1615
1551
are redirected to the `csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} driver.
1616
- -->
1617
- 在 Kubernetes {{< skew currentVersion >}} 中,对树内 `vsphereVolume`
1618
- 类的所有操作都会被重定向至 `csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动程序。
1619
1552
1620
- <!--
1621
- [vSphere CSI driver](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1622
- must be installed on the cluster. You can find additional advice on how to migrate in-tree `vsphereVolume` in VMware's documentation page
1623
- [Migrating In-Tree vSphere Volumes to vSphere Container Storage Plug-in](https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/2.0/vmware-vsphere-csp-getting-started/GUID-968D421F-D464-4E22-8127-6CB9FF54423F.html).
1624
- If vSphere CSI Driver is not installed volume operations can not be performed on the PV created with the in-tree `vsphereVolume` type.
1625
- -->
1626
- [vSphere CSI 驱动](https://github.com/kubernetes-sigs/vsphere-csi-driver)必须安装到集群上。
1627
- 你可以在 VMware 的文档页面[迁移树内 vSphere 卷插件到 vSphere 容器存储插件](https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/2.0/vmware-vsphere-csp-getting-started/GUID-968D421F-D464-4E22-8127-6CB9FF54423F.html)
1628
- 中找到有关如何迁移树内 `vsphereVolume` 的其他建议。
1629
- 如果未安装 vSphere CSI 驱动程序,则无法对由树内 `vsphereVolume` 类型创建的 PV 执行卷操作。
1630
-
1631
- <!--
1632
- You must run vSphere 7.0u2 or later in order to migrate to the vSphere CSI driver.
1633
-
1634
- If you are running a version of Kubernetes other than v{{< skew currentVersion >}}, consult
1635
- the documentation for that version of Kubernetes.
1636
- -->
1637
- 你必须运行 vSphere 7.0u2 或更高版本才能迁移到 vSphere CSI 驱动程序。
1638
-
1639
- 如果你正在运行 Kubernetes v{{< skew currentVersion >}},请查阅该 Kubernetes 版本的文档。
1640
-
1641
- {{< note >}}
1642
- <!--
1643
- The following StorageClass parameters from the built-in `vsphereVolume` plugin are not supported by the vSphere CSI driver :
1644
- -->
1645
- vSphere CSI 驱动不支持内置 `vsphereVolume` 的以下 StorageClass 参数:
1553
+ The `vsphereVolume` in-tree storage driver was deprecated in the Kubernetes v1.19 release
1554
+ and then removed entirely in the v1.30 release.
1646
1555
1647
- * `diskformat`
1648
- * `hostfailurestotolerate`
1649
- * `forceprovisioning`
1650
- * `cachereservation`
1651
- * `diskstripes`
1652
- * `objectspacereservation`
1653
- * `iopslimit`
1654
-
1655
- <!--
1656
- Existing volumes created using these parameters will be migrated to the vSphere CSI driver,
1657
- but new volumes created by the vSphere CSI driver will not be honoring these parameters.
1658
- -->
1659
- 使用这些参数创建的现有卷将被迁移到 vSphere CSI 驱动,不过使用 vSphere
1660
- CSI 驱动所创建的新卷都不会理会这些参数。
1661
-
1662
- {{< /note >}}
1663
-
1664
- <!--
1665
- # ### vSphere CSI migration complete {#vsphere-csi-migration-complete}
1556
+ The Kubernetes project suggests that you use the
1557
+ [vSphere CSI](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1558
+ third party storage driver instead.
1666
1559
-->
1667
- # ### vSphere CSI 迁移完成 {#vsphere-csi-migration-complete}
1560
+ 在 Kubernetes {{< skew currentVersion >}} 中,所有针对树内 `vsphereVolume` 类型的操作都被重定向到
1561
+ ` csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动。
1668
1562
1669
- {{< feature-state for_k8s_version=" v1.19" state="beta" >}}
1563
+ ` vsphereVolume ` 树内存储驱动在 Kubernetes v1.19 版本中被弃用,并在 v1.30 版本中被完全移除。
1670
1564
1671
- <!--
1672
- To turn off the `vsphereVolume` plugin from being loaded by the controller manager and the kubelet,
1673
- you need to set `InTreePluginvSphereUnregister` feature flag to `true`. You must install a
1674
- ` csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} driver on all worker nodes.
1675
- -->
1676
- 为了避免控制器管理器和 kubelet 加载 `vsphereVolume` 插件,你需要将
1677
- ` InTreePluginvSphereUnregister` 特性设置为 `true`。你还必须在所有工作节点上安装
1678
- ` csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动。
1565
+ Kubernetes 项目建议你改为使用 [vSphere CSI](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1566
+ 第三方存储驱动。
1679
1567
1680
1568
<!--
1681
1569
# # Using subPath {#using-subpath}
@@ -2191,18 +2079,10 @@ provisioning/delete, attach/detach, mount/unmount and resizing of volumes.
2191
2079
<!--
2192
2080
In-tree plugins that support `CSIMigration` and have a corresponding CSI driver implemented
2193
2081
are listed in [Types of Volumes](#volume-types).
2194
-
2195
- The following in-tree plugins support persistent storage on Windows nodes :
2196
2082
-->
2197
2083
上面的[卷类型](#volume-types)节列出了支持 `CSIMigration` 并已实现相应 CSI
2198
2084
驱动程序的树内插件。
2199
2085
2200
- 下面是支持 Windows 节点上持久性存储的树内插件:
2201
-
2202
- * [`azureFile`](#azurefile)
2203
- * [`gcePersistentDisk`](#gcepersistentdisk)
2204
- * [`vsphereVolume`](#vspherevolume)
2205
-
2206
2086
<!--
2207
2087
# ## flexVolume (deprecated) {#flexvolume}
2208
2088
-->
0 commit comments