1
1
---
2
2
title : 持久卷
3
+ api_metadata :
4
+ - apiVersion : " v1"
5
+ kind : " PersistentVolume"
3
6
feature :
4
7
title : 存储编排
5
8
description : >
@@ -15,6 +18,9 @@ reviewers:
15
18
- msau42
16
19
- xing-yang
17
20
title: Persistent Volumes
21
+ api_metadata:
22
+ - apiVersion: "v1"
23
+ kind: "PersistentVolume"
18
24
feature:
19
25
title: Storage orchestration
20
26
description: >
@@ -862,54 +868,71 @@ PV 持久卷是用插件的形式来实现的。Kubernetes 目前支持以下插
862
868
mounted on nodes.
863
869
* [`nfs`](/docs/concepts/storage/volumes/#nfs) - Network File System (NFS) storage
864
870
-->
865
- * [`csi`](/zh-cn/docs/concepts/storage/volumes/#csi) - 容器存储接口 ( CSI)
866
- * [`fc`](/zh-cn/docs/concepts/storage/volumes/#fc) - Fibre Channel (FC) 存储
871
+ * [`csi`](/zh-cn/docs/concepts/storage/volumes/#csi) - 容器存储接口( CSI)
872
+ * [`fc`](/zh-cn/docs/concepts/storage/volumes/#fc) - Fibre Channel(FC) 存储
867
873
* [`hostPath`](/zh-cn/docs/concepts/storage/volumes/#hostpath) - HostPath 卷
868
874
(仅供单节点测试使用;不适用于多节点集群;请尝试使用 `local` 卷作为替代)
869
- * [`iscsi`](/zh-cn/docs/concepts/storage/volumes/#iscsi) - iSCSI (SCSI over IP) 存储
875
+ * [`iscsi`](/zh-cn/docs/concepts/storage/volumes/#iscsi) - iSCSI(IP 上的 SCSI) 存储
870
876
* [`local`](/zh-cn/docs/concepts/storage/volumes/#local) - 节点上挂载的本地存储设备
871
- * [`nfs`](/zh-cn/docs/concepts/storage/volumes/#nfs) - 网络文件系统 ( NFS) 存储
877
+ * [`nfs`](/zh-cn/docs/concepts/storage/volumes/#nfs) - 网络文件系统( NFS) 存储
872
878
873
879
<!--
874
- The following types of PersistentVolume are deprecated.
875
- This means that support is still available but will be removed in a future Kubernetes release.
880
+ The following types of PersistentVolume are deprecated but still available.
881
+ If you are using these volume types except for `flexVolume`, `cephfs` and `rbd`,
882
+ please install corresponding CSI drivers.
876
883
884
+ * [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
885
+ (**migration on by default** starting v1.23)
886
+ * [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
887
+ (**migration on by default** starting v1.23)
877
888
* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) - Azure File
878
- (**deprecated** in v1.21)
889
+ (**migration on by default** starting v1.24)
890
+ * [`cephfs`](/docs/concepts/storage/volumes/#cephfs) - CephFS volume
891
+ (**deprecated** starting v1.28, no migration plan, support will be removed in a future release)
892
+ * [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
893
+ (**migration on by default** starting v1.21)
879
894
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
880
- (**deprecated** in v1.23)
895
+ (**deprecated** starting v1.23, no migration plan and no plan to remove support)
896
+ * [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcePersistentDisk) - GCE Persistent Disk
897
+ (**migration on by default** starting v1.23)
881
898
* [`portworxVolume`](/docs/concepts/storage/volumes/#portworxvolume) - Portworx volume
882
- (**deprecated** in v1.25)
883
- * [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK volume
884
- (**deprecated** in v1.19)
885
- * [`cephfs`](/docs/concepts/storage/volumes/#cephfs) - CephFS volume
886
- (**deprecated** in v1.28)
899
+ (**deprecated** starting v1.25)
887
900
* [`rbd`](/docs/concepts/storage/volumes/#rbd) - Rados Block Device (RBD) volume
888
- (**deprecated** in v1.28)
901
+ (**deprecated** starting v1.28, no migration plan, support will be removed in a future release)
902
+ * [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK volume
903
+ (**migration on by default** starting v1.25)
889
904
-->
890
- 以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。
905
+ 以下的持久卷已被弃用但仍然可用。
906
+ 如果你使用除 `flexVolume`、`cephfs` 和 `rbd` 之外的卷类型,请安装相应的 CSI 驱动程序。
891
907
892
- * [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure File
893
- (于 v1.21 **弃用**)
894
- * [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume (于 v1.23 **弃用**)
908
+ * [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic 块存储(EBS)
909
+ (从 v1.23 开始**默认启用迁移**)
910
+ * [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure 磁盘
911
+ (从 v1.23 开始**默认启用迁移**)
912
+ * [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure 文件
913
+ (从 v1.24 开始**默认启用迁移**)
914
+ * [`cephfs`](/zh-cn/docs/concepts/storage/volumes/#cephfs) - CephFS 卷
915
+ (从 v1.28 开始**弃用**,没有迁移计划,未来版本将移除支持)
916
+ * [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder(OpenStack 块存储)
917
+ (从 v1.21 开始**默认启用迁移**)
918
+ * [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume
919
+ (从 v1.23 开始**弃用**,没有迁移计划,没有移除支持的计划)
920
+ * [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcePersistentDisk) - GCE 持久磁盘
921
+ (从 v1.23 开始**默认启用迁移**)
895
922
* [`portworxVolume`](/zh-cn/docs/concepts/storage/volumes/#portworxvolume) - Portworx 卷
896
- (于 v1.25 **弃用**)
923
+ (从 v1.25 开始 **弃用**)
897
924
* [`vsphereVolume`](/zh-cn/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK 卷
898
925
(于 v1.19 **弃用**)
899
926
* [`cephfs`](/zh-cn/docs/concepts/storage/volumes/#cephfs) - CephFS 卷
900
927
(于 v1.28 **弃用**)
901
- * [`rbd`](/zh-cn/docs/concepts/storage/volumes/#rbd) - Rados Block Device (RBD) 卷
902
- (于 v1.28 **弃用**)
928
+ * [`rbd`](/zh-cn/docs/concepts/storage/volumes/#rbd) - Rados Block Device(RBD)卷
929
+ (从 v1.28 开始**弃用**,没有迁移计划,未来版本将移除支持)
930
+ * [`vsphereVolume`](/zh-cn/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK 卷
931
+ (从 v1.25 开始**默认启用迁移**)
903
932
904
933
<!--
905
934
Older versions of Kubernetes also supported the following in-tree PersistentVolume types :
906
935
907
- * [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
908
- (**not available** in v1.27)
909
- * [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
910
- (**not available** in v1.27)
911
- * [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
912
- (**not available** in v1.26)
913
936
* `photonPersistentDisk` - Photon controller persistent disk.
914
937
(**not available** starting v1.15)
915
938
* `scaleIO` - ScaleIO volume
@@ -923,17 +946,11 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
923
946
-->
924
947
旧版本的 Kubernetes 仍支持这些“树内(In-Tree)”持久卷类型:
925
948
926
- * [`awsElasticBlockStore`](/zh-cn/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
927
- (v1.27 开始**不可用**)
928
- * [`azureDisk`](/zh-cn/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
929
- (v1.27 开始**不可用**)
930
- * [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
931
- (v1.27 开始**不可用**)
932
949
* `photonPersistentDisk` - Photon 控制器持久化盘。(从 v1.15 版本开始将**不可用**)
933
950
* `scaleIO` - ScaleIO 卷(v1.21 之后**不可用**)
934
- * `flocker` - Flocker 存储 (v1.25 之后**不可用**)
935
- * `quobyte` - Quobyte 卷 (v1.25 之后**不可用**)
936
- * `storageos` - StorageOS 卷 (v1.25 之后**不可用**)
951
+ * `flocker` - Flocker 存储(v1.25 之后**不可用**)
952
+ * `quobyte` - Quobyte 卷(v1.25 之后**不可用**)
953
+ * `storageos` - StorageOS 卷(v1.25 之后**不可用**)
937
954
938
955
<!--
939
956
# # Persistent Volumes
@@ -946,7 +963,7 @@ The name of a PersistentVolume object must be a valid
946
963
947
964
每个 PV 对象都包含 `spec` 部分和 `status` 部分,分别对应卷的规约和状态。
948
965
PersistentVolume 对象的名称必须是合法的
949
- [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
966
+ [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)。
950
967
951
968
` ` ` yaml
952
969
apiVersion: v1
@@ -996,7 +1013,7 @@ Future attributes may include IOPS, throughput, etc.
996
1013
这是通过 PV 的 `capacity` 属性设置的,
997
1014
该属性是一个{{< glossary_tooltip text="量纲(Quantity)" term_id="quantity" >}}。
998
1015
999
- 目前,存储大小是可以设置和请求的唯一资源。
1016
+ 目前存储大小是可以设置和请求的唯一资源,
1000
1017
未来可能会包含 IOPS、吞吐量等属性。
1001
1018
1002
1019
<!--
@@ -1230,7 +1247,7 @@ For Kubernetes {{< skew currentVersion >}}, only `nfs` and `hostPath` volume typ
1230
1247
目前的回收策略有:
1231
1248
1232
1249
* Retain -- 手动回收
1233
- * Recycle -- 简单擦除 ( `rm -rf /thevolume/*`)
1250
+ * Recycle -- 简单擦除( `rm -rf /thevolume/*`)
1234
1251
* Delete -- 删除存储卷
1235
1252
1236
1253
对于 Kubernetes {{< skew currentVersion >}} 来说,只有
@@ -1391,7 +1408,7 @@ The name of a PersistentVolumeClaim object must be a valid
1391
1408
-->
1392
1409
每个 PVC 对象都有 `spec` 和 `status` 部分,分别对应申领的规约和状态。
1393
1410
PersistentVolumeClaim 对象的名称必须是合法的
1394
- [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
1411
+ [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)。
1395
1412
1396
1413
` ` ` yaml
1397
1414
apiVersion: v1
@@ -1574,7 +1591,7 @@ it won't be supported in a future Kubernetes release.
1574
1591
<!--
1575
1592
# ### Retroactive default StorageClass assignment
1576
1593
-->
1577
- # ### 可追溯的默认 StorageClass 赋值 {#retroactive-default-storageclass-assignment}
1594
+ # ### 可追溯的默认 StorageClass 赋值 {#retroactive-default-storageclass-assignment}
1578
1595
1579
1596
{{< feature-state for_k8s_version="v1.28" state="stable" >}}
1580
1597
@@ -1840,7 +1857,7 @@ Alpha 发行版本中仅支持静态制备的卷。
1840
1857
<!--
1841
1858
# # Volume Snapshot and Restore Volume from Snapshot Support
1842
1859
-->
1843
- # # 对卷快照及从卷快照中恢复卷的支持 {#volume-snapshot-and-restore-volume-from-snapshot-support}
1860
+ # # 对卷快照及从卷快照中恢复卷的支持 {#volume-snapshot-and-restore-volume-from-snapshot-support}
1844
1861
1845
1862
{{< feature-state for_k8s_version="v1.20" state="stable" >}}
1846
1863
0 commit comments