From efa26546c842ad5224cf112b7e985e08f903323c Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 28 Jul 2022 14:55:57 +0800 Subject: [PATCH] [zh-cn] resync /concepts/storage/persistent-volumes.md --- .../concepts/storage/persistent-volumes.md | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/content/zh-cn/docs/concepts/storage/persistent-volumes.md b/content/zh-cn/docs/concepts/storage/persistent-volumes.md index 1d2b50735b..4bca21f6c7 100644 --- a/content/zh-cn/docs/concepts/storage/persistent-volumes.md +++ b/content/zh-cn/docs/concepts/storage/persistent-volumes.md @@ -818,12 +818,12 @@ The following types of PersistentVolume are deprecated. This means that support 以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。 -* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder(OpenStack 块存储)(于 v1.18 **弃用**) +* [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder(OpenStack 块存储)(于 v1.18 **弃用**) * [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume (于 v1.23 **弃用**) -* [`flocker`](/docs/concepts/storage/volumes/#flocker) - Flocker 存储(于 v1.22 **弃用**) -* [`quobyte`](/docs/concepts/storage/volumes/#quobyte) - Quobyte 卷 +* [`flocker`](/zh-cn/docs/concepts/storage/volumes/#flocker) - Flocker 存储(于 v1.22 **弃用**) +* [`quobyte`](/zh-cn/docs/concepts/storage/volumes/#quobyte) - Quobyte 卷 (于 v1.22 **弃用**) -* [`storageos`](/docs/concepts/storage/volumes/#storageos) - StorageOS 卷(于 v1.22 **弃用**) +* [`storageos`](/zh-cn/docs/concepts/storage/volumes/#storageos) - StorageOS 卷(于 v1.22 **弃用**) 你可以将 `volumeMode` 设置为 `Block`,以便将卷作为原始块设备来使用。 这类卷以块设备的方式交给 Pod 使用,其上没有任何文件系统。 -这种模式对于为 Pod 提供一种使用最快可能方式来访问卷而言很有帮助,Pod 和 -卷之间不存在文件系统层。另外,Pod 中运行的应用必须知道如何处理原始块设备。 -关于如何在 Pod 中使用 `volumeMode: Block` 的卷,可参阅 -[原始块卷支持](#raw-block-volume-support)。 +这种模式对于为 Pod 提供一种使用最快可能方式来访问卷而言很有帮助, +Pod 和卷之间不存在文件系统层。另外,Pod 中运行的应用必须知道如何处理原始块设备。 +关于如何在 Pod 中使用 `volumeMode: Block` 的卷, +可参阅[原始块卷支持](#raw-block-volume-support)。 访问模式有: -`ReadWriteOnce` +`ReadWriteOnce` : 卷可以被一个节点以读写方式挂载。 -ReadWriteOnce 访问模式也允许运行在同一节点上的多个 Pod 访问卷。 +ReadWriteOnce 访问模式也允许运行在同一节点上的多个 Pod 访问卷。 `ReadOnlyMany` : 卷可以被多个节点以只读方式挂载。 @@ -1039,7 +1038,7 @@ Kubernetes 使用卷访问模式来匹配 PersistentVolumeClaim 和 PersistentVo | AzureFile | ✓ | ✓ | ✓ | - | | AzureDisk | ✓ | - | - | - | | CephFS | ✓ | ✓ | ✓ | - | -| Cinder | ✓ | - | - | - | +| Cinder | ✓ | - | ([如果多次挂接卷可用](https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/features.md#multi-attach-volumes)) | - | | CSI | 取决于驱动 | 取决于驱动 | 取决于驱动 | 取决于驱动 | | FC | ✓ | ✓ | - | - | | FlexVolume | ✓ | ✓ | 取决于驱动 | - | @@ -1081,7 +1080,6 @@ it will become fully deprecated in a future Kubernetes release. `storageClassName` 属性。这一注解目前仍然起作用,不过在将来的 Kubernetes 发布版本中该注解会被彻底废弃。 - 每个 PV 卷可以通过设置节点亲和性来定义一些约束,进而限制从哪些节点上可以访问此卷。 使用这些卷的 Pod 只会被调度到节点亲和性规则所选择的节点上执行。 -要设置节点亲和性,配置 PV 卷 `.spec` 中的 `nodeAffinity`。 -[持久卷](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/#PersistentVolumeSpec) +要设置节点亲和性,配置 PV 卷 `.spec` 中的 `nodeAffinity`。 +[持久卷](/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/#PersistentVolumeSpec) API 参考关于该字段的更多细节。 ### 卷模式 {#volume-modes} -申领使用[与卷相同的约定](#access-modes)来表明是将卷作为文件系统还是块设备来使用。 +申领使用[与卷相同的约定](#volume-mode)来表明是将卷作为文件系统还是块设备来使用。