Skip to content

Commit 6af7ca9

Browse files
authored
Merge pull request #50140 from windsonsea/volmes
[zh] Sync storage/volumes.md
2 parents e53ccf5 + a4f2e65 commit 6af7ca9

File tree

1 file changed

+26
-146
lines changed

1 file changed

+26
-146
lines changed

content/zh-cn/docs/concepts/storage/volumes.md

Lines changed: 26 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ weight: 10
2323
<!-- overview -->
2424

2525
<!--
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" >}}
2727
to access and share data via the filesystem. There are different kinds of volume that you can use for different purposes,
2828
such as:
2929
-->
@@ -230,62 +230,26 @@ Kubernetes 项目建议你转为使用 [Azure Disk](https://github.com/kubernete
230230
-->
231231
### azureFile (已弃用) {#azurefile}
232232

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 -->
253235

254236
<!--
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.
268239
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.
275242
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.
278245
-->
279-
#### azureFile CSI 迁移完成
246+
在 Kubernetes {{< skew currentVersion >}} 中,所有针对树内 `azureFile` 类型的操作都会被重定向到
247+
`file.csi.azure.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动。
280248

281-
{{< feature-state for_k8s_version="v1.21" state="alpha" >}}
249+
AzureFile 树内存储驱动在 Kubernetes v1.21 版本中被弃用,并在 v1.30 版本中被完全移除。
282250

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+
第三方存储驱动。
289253

290254
<!--
291255
### cephfs (removed) {#cephfs}
@@ -1579,103 +1543,27 @@ For more details, see [Configuring Secrets](/docs/concepts/configuration/secret/
15791543
-->
15801544
### vsphereVolume(已弃用) {#vspherevolume}
15811545

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 -->
16121548

16131549
<!--
16141550
In Kubernetes {{< skew currentVersion >}}, all operations for the in-tree `vsphereVolume` type
16151551
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" >}} 驱动程序。
16191552

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.
16461555

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.
16661559
-->
1667-
#### vSphere CSI 迁移完成 {#vsphere-csi-migration-complete}
1560+
在 Kubernetes {{< skew currentVersion >}} 中,所有针对树内 `vsphereVolume` 类型的操作都被重定向到
1561+
`csi.vsphere.vmware.com` {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动。
16681562

1669-
{{< feature-state for_k8s_version="v1.19" state="beta" >}}
1563+
`vsphereVolume` 树内存储驱动在 Kubernetes v1.19 版本中被弃用,并在 v1.30 版本中被完全移除。
16701564

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+
第三方存储驱动。
16791567

16801568
<!--
16811569
## Using subPath {#using-subpath}
@@ -2191,18 +2079,10 @@ provisioning/delete, attach/detach, mount/unmount and resizing of volumes.
21912079
<!--
21922080
In-tree plugins that support `CSIMigration` and have a corresponding CSI driver implemented
21932081
are listed in [Types of Volumes](#volume-types).
2194-
2195-
The following in-tree plugins support persistent storage on Windows nodes:
21962082
-->
21972083
上面的[卷类型](#volume-types)节列出了支持 `CSIMigration` 并已实现相应 CSI
21982084
驱动程序的树内插件。
21992085

2200-
下面是支持 Windows 节点上持久性存储的树内插件:
2201-
2202-
* [`azureFile`](#azurefile)
2203-
* [`gcePersistentDisk`](#gcepersistentdisk)
2204-
* [`vsphereVolume`](#vspherevolume)
2205-
22062086
<!--
22072087
### flexVolume (deprecated) {#flexvolume}
22082088
-->

0 commit comments

Comments
 (0)