Skip to content

Commit d64e1ef

Browse files
authored
Merge pull request #46002 from my-git9/persistent-volumes-53
[zh-cn] sync persistent-volumes
2 parents 26830bf + 97ccdd2 commit d64e1ef

File tree

1 file changed

+59
-42
lines changed

1 file changed

+59
-42
lines changed

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

Lines changed: 59 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: 持久卷
3+
api_metadata:
4+
- apiVersion: "v1"
5+
kind: "PersistentVolume"
36
feature:
47
title: 存储编排
58
description: >
@@ -15,6 +18,9 @@ reviewers:
1518
- msau42
1619
- xing-yang
1720
title: Persistent Volumes
21+
api_metadata:
22+
- apiVersion: "v1"
23+
kind: "PersistentVolume"
1824
feature:
1925
title: Storage orchestration
2026
description: >
@@ -862,54 +868,71 @@ PV 持久卷是用插件的形式来实现的。Kubernetes 目前支持以下插
862868
mounted on nodes.
863869
* [`nfs`](/docs/concepts/storage/volumes/#nfs) - Network File System (NFS) storage
864870
-->
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)存储
867873
* [`hostPath`](/zh-cn/docs/concepts/storage/volumes/#hostpath) - HostPath 卷
868874
(仅供单节点测试使用;不适用于多节点集群;请尝试使用 `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)存储
870876
* [`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存储
872878

873879
<!--
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.
876883

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)
877888
* [`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)
879894
* [`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)
881898
* [`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)
887900
* [`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)
889904
-->
890-
以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。
905+
以下的持久卷已被弃用但仍然可用。
906+
如果你使用除 `flexVolume`、`cephfs` 和 `rbd` 之外的卷类型,请安装相应的 CSI 驱动程序。
891907

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 开始**默认启用迁移**)
895922
* [`portworxVolume`](/zh-cn/docs/concepts/storage/volumes/#portworxvolume) - Portworx 卷
896-
v1.25 **弃用**)
923+
v1.25 开始**弃用**)
897924
* [`vsphereVolume`](/zh-cn/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK 卷
898925
(于 v1.19 **弃用**)
899926
* [`cephfs`](/zh-cn/docs/concepts/storage/volumes/#cephfs) - CephFS 卷
900927
(于 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 开始**默认启用迁移**)
903932

904933
<!--
905934
Older versions of Kubernetes also supported the following in-tree PersistentVolume types:
906935

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)
913936
* `photonPersistentDisk` - Photon controller persistent disk.
914937
(**not available** starting v1.15)
915938
* `scaleIO` - ScaleIO volume
@@ -923,17 +946,11 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
923946
-->
924947
旧版本的 Kubernetes 仍支持这些“树内(In-Tree)”持久卷类型:
925948

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 开始**不可用**)
932949
* `photonPersistentDisk` - Photon 控制器持久化盘。(从 v1.15 版本开始将**不可用**)
933950
* `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 之后**不可用**)
937954

938955
<!--
939956
## Persistent Volumes
@@ -946,7 +963,7 @@ The name of a PersistentVolume object must be a valid
946963

947964
每个 PV 对象都包含 `spec` 部分和 `status` 部分,分别对应卷的规约和状态。
948965
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)
950967

951968
```yaml
952969
apiVersion: v1
@@ -996,7 +1013,7 @@ Future attributes may include IOPS, throughput, etc.
9961013
这是通过 PV 的 `capacity` 属性设置的,
9971014
该属性是一个{{< glossary_tooltip text="量纲(Quantity)" term_id="quantity" >}}。
9981015

999-
目前,存储大小是可以设置和请求的唯一资源。
1016+
目前存储大小是可以设置和请求的唯一资源,
10001017
未来可能会包含 IOPS、吞吐量等属性。
10011018

10021019
<!--
@@ -1230,7 +1247,7 @@ For Kubernetes {{< skew currentVersion >}}, only `nfs` and `hostPath` volume typ
12301247
目前的回收策略有:
12311248

12321249
* Retain -- 手动回收
1233-
* Recycle -- 简单擦除 (`rm -rf /thevolume/*`)
1250+
* Recycle -- 简单擦除`rm -rf /thevolume/*`
12341251
* Delete -- 删除存储卷
12351252

12361253
对于 Kubernetes {{< skew currentVersion >}} 来说,只有
@@ -1391,7 +1408,7 @@ The name of a PersistentVolumeClaim object must be a valid
13911408
-->
13921409
每个 PVC 对象都有 `spec` 和 `status` 部分,分别对应申领的规约和状态。
13931410
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)
13951412

13961413
```yaml
13971414
apiVersion: v1
@@ -1574,7 +1591,7 @@ it won't be supported in a future Kubernetes release.
15741591
<!--
15751592
#### Retroactive default StorageClass assignment
15761593
-->
1577-
#### 可追溯的默认 StorageClass 赋值 {#retroactive-default-storageclass-assignment}
1594+
#### 可追溯的默认 StorageClass 赋值 {#retroactive-default-storageclass-assignment}
15781595

15791596
{{< feature-state for_k8s_version="v1.28" state="stable" >}}
15801597

@@ -1840,7 +1857,7 @@ Alpha 发行版本中仅支持静态制备的卷。
18401857
<!--
18411858
## Volume Snapshot and Restore Volume from Snapshot Support
18421859
-->
1843-
## 对卷快照及从卷快照中恢复卷的支持 {#volume-snapshot-and-restore-volume-from-snapshot-support}
1860+
## 对卷快照及从卷快照中恢复卷的支持 {#volume-snapshot-and-restore-volume-from-snapshot-support}
18441861

18451862
{{< feature-state for_k8s_version="v1.20" state="stable" >}}
18461863

0 commit comments

Comments
 (0)