Merge pull request #46002 from my-git9/persistent-volumes-53

[zh-cn] sync persistent-volumes
pull/46083/head
Kubernetes Prow Robot 2024-04-29 16:07:44 -07:00 committed by GitHub
commit d64e1ef4b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 60 additions and 43 deletions

View File

@ -1,5 +1,8 @@
---
title: 持久卷
api_metadata:
- apiVersion: "v1"
kind: "PersistentVolume"
feature:
title: 存储编排
description: >
@ -15,6 +18,9 @@ reviewers:
- msau42
- xing-yang
title: Persistent Volumes
api_metadata:
- apiVersion: "v1"
kind: "PersistentVolume"
feature:
title: Storage orchestration
description: >
@ -862,54 +868,71 @@ PV 持久卷是用插件的形式来实现的。Kubernetes 目前支持以下插
mounted on nodes.
* [`nfs`](/docs/concepts/storage/volumes/#nfs) - Network File System (NFS) storage
-->
* [`csi`](/zh-cn/docs/concepts/storage/volumes/#csi) - 容器存储接口 (CSI)
* [`fc`](/zh-cn/docs/concepts/storage/volumes/#fc) - Fibre Channel (FC) 存储
* [`csi`](/zh-cn/docs/concepts/storage/volumes/#csi) - 容器存储接口CSI
* [`fc`](/zh-cn/docs/concepts/storage/volumes/#fc) - Fibre ChannelFC存储
* [`hostPath`](/zh-cn/docs/concepts/storage/volumes/#hostpath) - HostPath 卷
(仅供单节点测试使用;不适用于多节点集群;请尝试使用 `local` 卷作为替代)
* [`iscsi`](/zh-cn/docs/concepts/storage/volumes/#iscsi) - iSCSI (SCSI over IP) 存储
* [`iscsi`](/zh-cn/docs/concepts/storage/volumes/#iscsi) - iSCSIIP 上的 SCSI存储
* [`local`](/zh-cn/docs/concepts/storage/volumes/#local) - 节点上挂载的本地存储设备
* [`nfs`](/zh-cn/docs/concepts/storage/volumes/#nfs) - 网络文件系统 (NFS) 存储
* [`nfs`](/zh-cn/docs/concepts/storage/volumes/#nfs) - 网络文件系统NFS存储
<!--
The following types of PersistentVolume are deprecated.
This means that support is still available but will be removed in a future Kubernetes release.
The following types of PersistentVolume are deprecated but still available.
If you are using these volume types except for `flexVolume`, `cephfs` and `rbd`,
please install corresponding CSI drivers.
* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
(**migration on by default** starting v1.23)
* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
(**migration on by default** starting v1.23)
* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) - Azure File
(**deprecated** in v1.21)
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
(**deprecated** in v1.23)
* [`portworxVolume`](/docs/concepts/storage/volumes/#portworxvolume) - Portworx volume
(**deprecated** in v1.25)
* [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK volume
(**deprecated** in v1.19)
(**migration on by default** starting v1.24)
* [`cephfs`](/docs/concepts/storage/volumes/#cephfs) - CephFS volume
(**deprecated** in v1.28)
(**deprecated** starting v1.28, no migration plan, support will be removed in a future release)
* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
(**migration on by default** starting v1.21)
* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume
(**deprecated** starting v1.23, no migration plan and no plan to remove support)
* [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcePersistentDisk) - GCE Persistent Disk
(**migration on by default** starting v1.23)
* [`portworxVolume`](/docs/concepts/storage/volumes/#portworxvolume) - Portworx volume
(**deprecated** starting v1.25)
* [`rbd`](/docs/concepts/storage/volumes/#rbd) - Rados Block Device (RBD) volume
(**deprecated** in v1.28)
(**deprecated** starting v1.28, no migration plan, support will be removed in a future release)
* [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK volume
(**migration on by default** starting v1.25)
-->
以下的持久卷已被弃用。这意味着当前仍是支持的,但是 Kubernetes 将来的发行版会将其移除。
以下的持久卷已被弃用但仍然可用。
如果你使用除 `flexVolume`、`cephfs` 和 `rbd` 之外的卷类型,请安装相应的 CSI 驱动程序。
* [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure File
(于 v1.21 **弃用**
* [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume (于 v1.23 **弃用**
* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic 块存储EBS
(从 v1.23 开始**默认启用迁移**
* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure 磁盘
(从 v1.23 开始**默认启用迁移**
* [`azureFile`](/zh-cn/docs/concepts/storage/volumes/#azurefile) - Azure 文件
(从 v1.24 开始**默认启用迁移**
* [`cephfs`](/zh-cn/docs/concepts/storage/volumes/#cephfs) - CephFS 卷
(从 v1.28 开始**弃用**,没有迁移计划,未来版本将移除支持)
* [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - CinderOpenStack 块存储)
(从 v1.21 开始**默认启用迁移**
* [`flexVolume`](/zh-cn/docs/concepts/storage/volumes/#flexVolume) - FlexVolume
(从 v1.23 开始**弃用**,没有迁移计划,没有移除支持的计划)
* [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcePersistentDisk) - GCE 持久磁盘
(从 v1.23 开始**默认启用迁移**
* [`portworxVolume`](/zh-cn/docs/concepts/storage/volumes/#portworxvolume) - Portworx 卷
(于 v1.25 **弃用**
从 v1.25 开始**弃用**
* [`vsphereVolume`](/zh-cn/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK 卷
(于 v1.19 **弃用**
* [`cephfs`](/zh-cn/docs/concepts/storage/volumes/#cephfs) - CephFS 卷
(于 v1.28 **弃用**
* [`rbd`](/zh-cn/docs/concepts/storage/volumes/#rbd) - Rados Block Device (RBD) 卷
(于 v1.28 **弃用**
* [`rbd`](/zh-cn/docs/concepts/storage/volumes/#rbd) - Rados Block DeviceRBD
(从 v1.28 开始**弃用**,没有迁移计划,未来版本将移除支持)
* [`vsphereVolume`](/zh-cn/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK 卷
(从 v1.25 开始**默认启用迁移**
<!--
Older versions of Kubernetes also supported the following in-tree PersistentVolume types:
* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
(**not available** in v1.27)
* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
(**not available** in v1.27)
* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
(**not available** in v1.26)
* `photonPersistentDisk` - Photon controller persistent disk.
(**not available** starting v1.15)
* `scaleIO` - ScaleIO volume
@ -923,12 +946,6 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
-->
旧版本的 Kubernetes 仍支持这些“树内In-Tree”持久卷类型
* [`awsElasticBlockStore`](/zh-cn/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS)
v1.27 开始**不可用**
* [`azureDisk`](/zh-cn/docs/concepts/storage/volumes/#azuredisk) - Azure Disk
v1.27 开始**不可用**
* [`cinder`](/zh-cn/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage)
v1.27 开始**不可用**
* `photonPersistentDisk` - Photon 控制器持久化盘。(从 v1.15 版本开始将**不可用**
* `scaleIO` - ScaleIO 卷v1.21 之后**不可用**
* `flocker` - Flocker 存储v1.25 之后**不可用**
@ -946,7 +963,7 @@ The name of a PersistentVolume object must be a valid
每个 PV 对象都包含 `spec` 部分和 `status` 部分,分别对应卷的规约和状态。
PersistentVolume 对象的名称必须是合法的
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)
```yaml
apiVersion: v1
@ -996,7 +1013,7 @@ Future attributes may include IOPS, throughput, etc.
这是通过 PV 的 `capacity` 属性设置的,
该属性是一个{{< glossary_tooltip text="量纲Quantity" term_id="quantity" >}}。
目前存储大小是可以设置和请求的唯一资源
目前存储大小是可以设置和请求的唯一资源
未来可能会包含 IOPS、吞吐量等属性。
<!--
@ -1230,7 +1247,7 @@ For Kubernetes {{< skew currentVersion >}}, only `nfs` and `hostPath` volume typ
目前的回收策略有:
* Retain -- 手动回收
* Recycle -- 简单擦除 (`rm -rf /thevolume/*`)
* Recycle -- 简单擦除`rm -rf /thevolume/*`
* Delete -- 删除存储卷
对于 Kubernetes {{< skew currentVersion >}} 来说,只有
@ -1391,7 +1408,7 @@ The name of a PersistentVolumeClaim object must be a valid
-->
每个 PVC 对象都有 `spec``status` 部分,分别对应申领的规约和状态。
PersistentVolumeClaim 对象的名称必须是合法的
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)
```yaml
apiVersion: v1