Skip to content

Commit 172f17e

Browse files
authored
Merge pull request #42377 from windsonsea/pvcy
[zh] sync /storage/persistent-volumes.md
2 parents b514bd7 + f56c02f commit 172f17e

File tree

1 file changed

+60
-47
lines changed

1 file changed

+60
-47
lines changed

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

Lines changed: 60 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,15 @@ An administrator can manually reclaim the volume with the following steps.
340340

341341
<!--
342342
1. Delete the PersistentVolume. The associated storage asset in external infrastructure
343-
(such as an AWS EBS, GCE PD, Azure Disk, or Cinder volume) still exists after the PV is deleted.
343+
(such as an AWS EBS or GCE PD volume) still exists after the PV is deleted.
344344
1. Manually clean up the data on the associated storage asset accordingly.
345345
1. Manually delete the associated storage asset.
346346
347347
If you want to reuse the same storage asset, create a new PersistentVolume with
348348
the same storage asset definition.
349349
-->
350350
1. 删除 PersistentVolume 对象。与之相关的、位于外部基础设施中的存储资产
351-
(例如 AWS EBS、GCE PD、Azure Disk 或 Cinder 卷)在 PV 删除之后仍然存在。
351+
(例如 AWS EBS 或 GCE PD 卷)在 PV 删除之后仍然存在。
352352
1. 根据情况,手动清除所关联的存储资产上的数据。
353353
1. 手动删除所关联的存储资产。
354354

@@ -359,8 +359,8 @@ the same storage asset definition.
359359
360360
For volume plugins that support the `Delete` reclaim policy, deletion removes
361361
both the PersistentVolume object from Kubernetes, as well as the associated
362-
storage asset in the external infrastructure, such as an AWS EBS, GCE PD,
363-
Azure Disk, or Cinder volume. Volumes that were dynamically provisioned
362+
storage asset in the external infrastructure, such as an AWS EBS or GCE PD volume.
363+
Volumes that were dynamically provisioned
364364
inherit the [reclaim policy of their StorageClass](#reclaim-policy), which
365365
defaults to `Delete`. The administrator should configure the StorageClass
366366
according to users' expectations; otherwise, the PV must be edited or
@@ -370,8 +370,7 @@ patched after it is created. See
370370
#### 删除(Delete) {#delete}
371371

372372
对于支持 `Delete` 回收策略的卷插件,删除动作会将 PersistentVolume 对象从
373-
Kubernetes 中移除,同时也会从外部基础设施(如 AWS EBS、GCE PD、Azure Disk 或
374-
Cinder 卷)中移除所关联的存储资产。
373+
Kubernetes 中移除,同时也会从外部基础设施(如 AWS EBS 或 GCE PD 卷)中移除所关联的存储资产。
375374
动态制备的卷会继承[其 StorageClass 中设置的回收策略](#reclaim-policy)
376375
该策略默认为 `Delete`。管理员需要根据用户的期望来配置 StorageClass;
377376
否则 PV 卷被创建之后必须要被编辑或者修补。
@@ -616,15 +615,20 @@ the following types of volumes:
616615
-->
617616
现在,对扩充 PVC 申领的支持默认处于被启用状态。你可以扩充以下类型的卷:
618617

619-
* azureDisk
620-
* azureFile
621-
* awsElasticBlockStore
622-
* cinder (已弃用)
618+
<!--
619+
* azureFile (deprecated)
623620
* {{< glossary_tooltip text="csi" term_id="csi" >}}
624-
* flexVolume (已弃用)
625-
* gcePersistentDisk
621+
* flexVolume (deprecated)
622+
* gcePersistentDisk (deprecated)
626623
* rbd
627-
* portworxVolume
624+
* portworxVolume (deprecated)
625+
-->
626+
* azureFile(已弃用)
627+
* {{< glossary_tooltip text="csi" term_id="csi" >}}
628+
* flexVolume(已弃用)
629+
* gcePersistentDisk(已弃用)
630+
* rbd
631+
* portworxVolume(已弃用)
628632

629633
<!--
630634
You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true.
@@ -885,14 +889,8 @@ PV 持久卷是用插件的形式来实现的。Kubernetes 目前支持以下插
885889
The following types of PersistentVolume are deprecated.
886890
This means that support is still available but will be removed in a future Kubernetes release.
887891

888-
* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
889-
(**deprecated** in v1.17)
890-
* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
891-
(**deprecated** in v1.19)
892892
* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) - Azure File
893893
(**deprecated** in v1.21)
894-
* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
895-
(**deprecated** in v1.18)
896894
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
897895
(**deprecated** in v1.23)
898896
* [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcepersistentdisk) - GCE Persistent Disk
@@ -904,13 +902,8 @@ This means that support is still available but will be removed in a future Kuber
904902
-->
905903
以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。
906904

907-
* [`awsElasticBlockStore`](/zh-cn/docs/concepts/storage/volumes/#awselasticblockstore) - AWS 弹性块存储(EBS)
908-
(于 v1.17 **弃用**)
909-
* [`azureDisk`](/zh-cn/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
910-
(于 v1.19 **弃用**)
911905
* [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure File
912906
(于 v1.21 **弃用**)
913-
* [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder(OpenStack 块存储)(于 v1.18 **弃用**)
914907
* [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume (于 v1.23 **弃用**)
915908
* [`gcePersistentDisk`](/zh-cn/docs/concepts/storage/volumes/#gcepersistentdisk) - GCE Persistent Disk
916909
(于 v1.17 **弃用**)
@@ -922,6 +915,12 @@ This means that support is still available but will be removed in a future Kuber
922915
<!--
923916
Older versions of Kubernetes also supported the following in-tree PersistentVolume types:
924917

918+
* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
919+
(**not available** in v1.27)
920+
* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
921+
(**not available** in v1.27)
922+
* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
923+
(**not available** in v1.26)
925924
* `photonPersistentDisk` - Photon controller persistent disk.
926925
(**not available** starting v1.15)
927926
* [`scaleIO`](/docs/concepts/storage/volumes/#scaleio) - ScaleIO volume
@@ -936,6 +935,12 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
936935

937936
旧版本的 Kubernetes 仍支持这些“树内(In-Tree)”持久卷类型:
938937

938+
* [`awsElasticBlockStore`](/zh-cn/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
939+
(v1.27 开始**不可用**)
940+
* [`azureDisk`](/zh-cn/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
941+
(v1.27 开始**不可用**)
942+
* [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
943+
(v1.27 开始**不可用**)
939944
* `photonPersistentDisk` - Photon 控制器持久化盘。(从 v1.15 版本开始将**不可用**)
940945
* [`scaleIO`](/zh-cn/docs/concepts/storage/volumes/#scaleio) - ScaleIO 卷(v1.21 之后**不可用**)
941946
* [`flocker`](/zh-cn/docs/concepts/storage/volumes/#flocker) - Flocker 存储
@@ -1158,16 +1163,27 @@ Kubernetes 使用卷访问模式来匹配 PersistentVolumeClaim 和 PersistentVo
11581163
> 模式挂载,或者被多个节点以 ReadOnlyMany 模式挂载,但不可以同时以两种模式挂载。
11591164

11601165
<!--
1161-
| Volume Plugin | ReadWriteOnce | ReadOnlyMany | ReadWriteMany|
1166+
| Volume Plugin | ReadWriteOnce | ReadOnlyMany | ReadWriteMany | ReadWriteOncePod |
1167+
| :--- | :---: | :---: | :---: | - |
1168+
| AzureFile | &#x2713; | &#x2713; | &#x2713; | - |
1169+
| CephFS | &#x2713; | &#x2713; | &#x2713; | - |
1170+
| CSI | depends on the driver | depends on the driver | depends on the driver | depends on the driver |
1171+
| FC | &#x2713; | &#x2713; | - | - |
1172+
| FlexVolume | &#x2713; | &#x2713; | depends on the driver | - |
1173+
| GCEPersistentDisk | &#x2713; | &#x2713; | - | - |
1174+
| Glusterfs | &#x2713; | &#x2713; | &#x2713; | - |
1175+
| HostPath | &#x2713; | - | - | - |
1176+
| iSCSI | &#x2713; | &#x2713; | - | - |
1177+
| NFS | &#x2713; | &#x2713; | &#x2713; | - |
1178+
| RBD | &#x2713; | &#x2713; | - | - |
1179+
| VsphereVolume | &#x2713; | - | - (works when Pods are collocated) | - |
1180+
| PortworxVolume | &#x2713; | - | &#x2713; | - | - |
11621181
-->
11631182

11641183
| 卷插件 | ReadWriteOnce | ReadOnlyMany | ReadWriteMany | ReadWriteOncePod |
11651184
| :--- | :---: | :---: | :---: | - |
1166-
| AWSElasticBlockStore | &#x2713; | - | - | - |
11671185
| AzureFile | &#x2713; | &#x2713; | &#x2713; | - |
1168-
| AzureDisk | &#x2713; | - | - | - |
11691186
| CephFS | &#x2713; | &#x2713; | &#x2713; | - |
1170-
| Cinder | &#x2713; | - | ([如果多次挂接卷可用](https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/features.md#multi-attach-volumes)) | - |
11711187
| CSI | 取决于驱动 | 取决于驱动 | 取决于驱动 | 取决于驱动 |
11721188
| FC | &#x2713; | &#x2713; | - | - |
11731189
| FlexVolume | &#x2713; | &#x2713; | 取决于驱动 | - |
@@ -1213,22 +1229,20 @@ Current reclaim policies are:
12131229

12141230
* Retain -- manual reclamation
12151231
* Recycle -- basic scrub (`rm -rf /thevolume/*`)
1216-
* Delete -- associated storage asset such as AWS EBS, GCE PD, Azure Disk,
1217-
or OpenStack Cinder volume is deleted
1232+
* Delete -- associated storage asset such as AWS EBS or GCE PD volume is deleted
12181233

1219-
Currently, only NFS and HostPath support recycling. AWS EBS, GCE PD, Azure Disk,
1220-
and Cinder volumes support deletion.
1234+
Currently, only NFS and HostPath support recycling. AWS EBS and GCE PD volumes support deletion.
12211235
-->
12221236
### 回收策略 {#reclaim-policy}
12231237

12241238
目前的回收策略有:
12251239

12261240
* Retain -- 手动回收
12271241
* Recycle -- 基本擦除 (`rm -rf /thevolume/*`)
1228-
* Delete -- 诸如 AWS EBS、GCE PD、Azure Disk 或 OpenStack Cinder 卷这类关联存储资产也被删除
1242+
* Delete -- 诸如 AWS EBS 或 GCE PD 卷这类关联存储资产也被删除
12291243

12301244
目前,仅 NFS 和 HostPath 支持回收(Recycle)。
1231-
AWS EBS、GCE PD、Azure Disk 和 Cinder 卷都支持删除(Delete)。
1245+
AWS EBS 和 GCE PD 卷支持删除(Delete)。
12321246

12331247
<!--
12341248
### Mount Options
@@ -1252,11 +1266,8 @@ The following volume types support mount options:
12521266
-->
12531267
以下卷类型支持挂载选项:
12541268

1255-
* `awsElasticBlockStore`
1256-
* `azureDisk`
12571269
* `azureFile`
12581270
* `cephfs`
1259-
* `cinder`(于 v1.18 **弃用**)
12601271
* `gcePersistentDisk`
12611272
* `iscsi`
12621273
* `nfs`
@@ -1285,15 +1296,11 @@ it will become fully deprecated in a future Kubernetes release.
12851296
{{< note >}}
12861297
<!--
12871298
For most volume types, you do not need to set this field. It is automatically
1288-
populated for [AWS EBS](/docs/concepts/storage/volumes/#awselasticblockstore),
1289-
[GCE PD](/docs/concepts/storage/volumes/#gcepersistentdisk) and
1290-
[Azure Disk](/docs/concepts/storage/volumes/#azuredisk) volume block types. You
1291-
need to explicitly set this for [local](/docs/concepts/storage/volumes/#local) volumes.
1299+
populated for [GCE PD](/docs/concepts/storage/volumes/#gcepersistentdisk) volume block types.
1300+
You need to explicitly set this for [local](/docs/concepts/storage/volumes/#local) volumes.
12921301
-->
12931302
对大多数类型的卷而言,你不需要设置节点亲和性字段。
1294-
[AWS EBS](/zh-cn/docs/concepts/storage/volumes/#awselasticblockstore)、
1295-
[GCE PD](/zh-cn/docs/concepts/storage/volumes/#gcepersistentdisk) 和
1296-
[Azure Disk](/zh-cn/docs/concepts/storage/volumes/#azuredisk) 卷类型都能自动设置相关字段。
1303+
[GCE PD](/zh-cn/docs/concepts/storage/volumes/#gcepersistentdisk) 卷类型能自动设置相关字段。
12971304
你需要为 [local](/zh-cn/docs/concepts/storage/volumes/#local) 卷显式地设置此属性。
12981305
{{< /note >}}
12991306

@@ -1644,14 +1651,20 @@ applicable:
16441651
-->
16451652
以下卷插件支持原始块卷,包括其动态制备(如果支持的话)的卷:
16461653

1647-
* AWSElasticBlockStore
1648-
* AzureDisk
1654+
<!--
1655+
* CSI
1656+
* FC (Fibre Channel)
1657+
* GCEPersistentDisk
1658+
* iSCSI
1659+
* Local volume
1660+
* RBD (Ceph Block Device)
1661+
* VsphereVolume
1662+
-->
16491663
* CSI
16501664
* FC(光纤通道)
16511665
* GCEPersistentDisk
16521666
* iSCSI
16531667
* Local 卷
1654-
* OpenStack Cinder
16551668
* RBD(Ceph 块设备)
16561669
* VsphereVolume
16571670

0 commit comments

Comments
 (0)