@@ -340,15 +340,15 @@ An administrator can manually reclaim the volume with the following steps.
340
340
341
341
<!--
342
342
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.
344
344
1. Manually clean up the data on the associated storage asset accordingly.
345
345
1. Manually delete the associated storage asset.
346
346
347
347
If you want to reuse the same storage asset, create a new PersistentVolume with
348
348
the same storage asset definition.
349
349
-->
350
350
1 . 删除 PersistentVolume 对象。与之相关的、位于外部基础设施中的存储资产
351
- (例如 AWS EBS、GCE PD、Azure Disk 或 Cinder 卷)在 PV 删除之后仍然存在。
351
+ (例如 AWS EBS 或 GCE PD 卷)在 PV 删除之后仍然存在。
352
352
1 . 根据情况,手动清除所关联的存储资产上的数据。
353
353
1 . 手动删除所关联的存储资产。
354
354
@@ -359,8 +359,8 @@ the same storage asset definition.
359
359
360
360
For volume plugins that support the `Delete` reclaim policy, deletion removes
361
361
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
364
364
inherit the [reclaim policy of their StorageClass](#reclaim-policy), which
365
365
defaults to `Delete`. The administrator should configure the StorageClass
366
366
according to users' expectations; otherwise, the PV must be edited or
@@ -370,8 +370,7 @@ patched after it is created. See
370
370
#### 删除(Delete) {#delete}
371
371
372
372
对于支持 ` Delete ` 回收策略的卷插件,删除动作会将 PersistentVolume 对象从
373
- Kubernetes 中移除,同时也会从外部基础设施(如 AWS EBS、GCE PD、Azure Disk 或
374
- Cinder 卷)中移除所关联的存储资产。
373
+ Kubernetes 中移除,同时也会从外部基础设施(如 AWS EBS 或 GCE PD 卷)中移除所关联的存储资产。
375
374
动态制备的卷会继承[ 其 StorageClass 中设置的回收策略] ( #reclaim-policy ) ,
376
375
该策略默认为 ` Delete ` 。管理员需要根据用户的期望来配置 StorageClass;
377
376
否则 PV 卷被创建之后必须要被编辑或者修补。
@@ -616,15 +615,20 @@ the following types of volumes:
616
615
-->
617
616
现在,对扩充 PVC 申领的支持默认处于被启用状态。你可以扩充以下类型的卷:
618
617
619
- * azureDisk
620
- * azureFile
621
- * awsElasticBlockStore
622
- * cinder (已弃用)
618
+ <!--
619
+ * azureFile (deprecated)
623
620
* {{< glossary_tooltip text="csi" term_id="csi" >}}
624
- * flexVolume (已弃用)
625
- * gcePersistentDisk
621
+ * flexVolume (deprecated)
622
+ * gcePersistentDisk (deprecated)
626
623
* 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(已弃用)
628
632
629
633
<!--
630
634
You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true.
@@ -885,14 +889,8 @@ PV 持久卷是用插件的形式来实现的。Kubernetes 目前支持以下插
885
889
The following types of PersistentVolume are deprecated.
886
890
This means that support is still available but will be removed in a future Kubernetes release.
887
891
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)
892
892
* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) - Azure File
893
893
(**deprecated** in v1.21)
894
- * [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
895
- (**deprecated** in v1.18)
896
894
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
897
895
(**deprecated** in v1.23)
898
896
* [`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
904
902
-->
905
903
以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。
906
904
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 **弃用**)
911
905
* [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure File
912
906
(于 v1.21 **弃用**)
913
- * [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder(OpenStack 块存储)(于 v1.18 **弃用**)
914
907
* [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume (于 v1.23 **弃用**)
915
908
* [`gcePersistentDisk`](/zh-cn/docs/concepts/storage/volumes/#gcepersistentdisk) - GCE Persistent Disk
916
909
(于 v1.17 **弃用**)
@@ -922,6 +915,12 @@ This means that support is still available but will be removed in a future Kuber
922
915
<!--
923
916
Older versions of Kubernetes also supported the following in-tree PersistentVolume types :
924
917
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)
925
924
* `photonPersistentDisk` - Photon controller persistent disk.
926
925
(**not available** starting v1.15)
927
926
* [`scaleIO`](/docs/concepts/storage/volumes/#scaleio) - ScaleIO volume
@@ -936,6 +935,12 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
936
935
937
936
旧版本的 Kubernetes 仍支持这些“树内(In-Tree)”持久卷类型:
938
937
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 开始**不可用**)
939
944
* `photonPersistentDisk` - Photon 控制器持久化盘。(从 v1.15 版本开始将**不可用**)
940
945
* [`scaleIO`](/zh-cn/docs/concepts/storage/volumes/#scaleio) - ScaleIO 卷(v1.21 之后**不可用**)
941
946
* [`flocker`](/zh-cn/docs/concepts/storage/volumes/#flocker) - Flocker 存储
@@ -1158,16 +1163,27 @@ Kubernetes 使用卷访问模式来匹配 PersistentVolumeClaim 和 PersistentVo
1158
1163
> 模式挂载,或者被多个节点以 ReadOnlyMany 模式挂载,但不可以同时以两种模式挂载。
1159
1164
1160
1165
<!--
1161
- | Volume Plugin | ReadWriteOnce | ReadOnlyMany | ReadWriteMany|
1166
+ | Volume Plugin | ReadWriteOnce | ReadOnlyMany | ReadWriteMany | ReadWriteOncePod |
1167
+ | :--- | :--- : | :---: | :---: | - |
1168
+ | AzureFile | ✓ | ✓ | ✓ | - |
1169
+ | CephFS | ✓ | ✓ | ✓ | - |
1170
+ | CSI | depends on the driver | depends on the driver | depends on the driver | depends on the driver |
1171
+ | FC | ✓ | ✓ | - | - |
1172
+ | FlexVolume | ✓ | ✓ | depends on the driver | - |
1173
+ | GCEPersistentDisk | ✓ | ✓ | - | - |
1174
+ | Glusterfs | ✓ | ✓ | ✓ | - |
1175
+ | HostPath | ✓ | - | - | - |
1176
+ | iSCSI | ✓ | ✓ | - | - |
1177
+ | NFS | ✓ | ✓ | ✓ | - |
1178
+ | RBD | ✓ | ✓ | - | - |
1179
+ | VsphereVolume | ✓ | - | - (works when Pods are collocated) | - |
1180
+ | PortworxVolume | ✓ | - | ✓ | - | - |
1162
1181
-->
1163
1182
1164
1183
| 卷插件 | ReadWriteOnce | ReadOnlyMany | ReadWriteMany | ReadWriteOncePod |
1165
1184
| :--- | :--- : | :---: | :---: | - |
1166
- | AWSElasticBlockStore | ✓ | - | - | - |
1167
1185
| AzureFile | ✓ | ✓ | ✓ | - |
1168
- | AzureDisk | ✓ | - | - | - |
1169
1186
| CephFS | ✓ | ✓ | ✓ | - |
1170
- | Cinder | ✓ | - | ([如果多次挂接卷可用](https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/features.md#multi-attach-volumes)) | - |
1171
1187
| CSI | 取决于驱动 | 取决于驱动 | 取决于驱动 | 取决于驱动 |
1172
1188
| FC | ✓ | ✓ | - | - |
1173
1189
| FlexVolume | ✓ | ✓ | 取决于驱动 | - |
@@ -1213,22 +1229,20 @@ Current reclaim policies are:
1213
1229
1214
1230
* Retain -- manual reclamation
1215
1231
* 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
1218
1233
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.
1221
1235
-->
1222
1236
# ## 回收策略 {#reclaim-policy}
1223
1237
1224
1238
目前的回收策略有:
1225
1239
1226
1240
* Retain -- 手动回收
1227
1241
* Recycle -- 基本擦除 (`rm -rf /thevolume/*`)
1228
- * Delete -- 诸如 AWS EBS、GCE PD、Azure Disk 或 OpenStack Cinder 卷这类关联存储资产也被删除
1242
+ * Delete -- 诸如 AWS EBS 或 GCE PD 卷这类关联存储资产也被删除
1229
1243
1230
1244
目前,仅 NFS 和 HostPath 支持回收(Recycle)。
1231
- AWS EBS、GCE PD、Azure Disk 和 Cinder 卷都支持删除 (Delete)。
1245
+ AWS EBS 和 GCE PD 卷支持删除 (Delete)。
1232
1246
1233
1247
<!--
1234
1248
# ## Mount Options
@@ -1252,11 +1266,8 @@ The following volume types support mount options:
1252
1266
-->
1253
1267
以下卷类型支持挂载选项:
1254
1268
1255
- * `awsElasticBlockStore`
1256
- * `azureDisk`
1257
1269
* `azureFile`
1258
1270
* `cephfs`
1259
- * `cinder`(于 v1.18 **弃用**)
1260
1271
* `gcePersistentDisk`
1261
1272
* `iscsi`
1262
1273
* `nfs`
@@ -1285,15 +1296,11 @@ it will become fully deprecated in a future Kubernetes release.
1285
1296
{{< note >}}
1286
1297
<!--
1287
1298
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.
1292
1301
-->
1293
1302
对大多数类型的卷而言,你不需要设置节点亲和性字段。
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) 卷类型能自动设置相关字段。
1297
1304
你需要为 [local](/zh-cn/docs/concepts/storage/volumes/#local) 卷显式地设置此属性。
1298
1305
{{< /note >}}
1299
1306
@@ -1644,14 +1651,20 @@ applicable:
1644
1651
-->
1645
1652
以下卷插件支持原始块卷,包括其动态制备(如果支持的话)的卷:
1646
1653
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
+ -->
1649
1663
* CSI
1650
1664
* FC(光纤通道)
1651
1665
* GCEPersistentDisk
1652
1666
* iSCSI
1653
1667
* Local 卷
1654
- * OpenStack Cinder
1655
1668
* RBD(Ceph 块设备)
1656
1669
* VsphereVolume
1657
1670
0 commit comments