Skip to content

Commit ae9422f

Browse files
committedMar 21, 2025·
[zh] Sync persistent-volumes.md and storage-limits.md
1 parent 5ee5704 commit ae9422f

File tree

2 files changed

+41
-59
lines changed

2 files changed

+41
-59
lines changed
 

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

+14-31
Original file line numberDiff line numberDiff line change
@@ -657,16 +657,13 @@ the following types of volumes:
657657
现在,对扩充 PVC 申领的支持默认处于被启用状态。你可以扩充以下类型的卷:
658658

659659
<!--
660-
* azureFile (deprecated)
661-
* {{< glossary_tooltip text="csi" term_id="csi" >}}
660+
* {{< glossary_tooltip text="csi" term_id="csi" >}} (including some CSI migrated
661+
volme types)
662662
* flexVolume (deprecated)
663-
* rbd (deprecated)
664663
* portworxVolume (deprecated)
665664
-->
666-
* azureFile(已弃用)
667-
* {{< glossary_tooltip text="csi" term_id="csi" >}}
665+
* {{< glossary_tooltip text="csi" term_id="csi" >}}(包含一些 CSI 迁移的卷类型)
668666
* flexVolume(已弃用)
669-
* rbd(已弃用)
670667
* portworxVolume(已弃用)
671668

672669
<!--
@@ -959,6 +956,8 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
959956
(**not available** starting v1.31)
960957
* `flocker` - Flocker storage.
961958
(**not available** starting v1.25)
959+
* `glusterfs` - GlusterFS storage.
960+
(**not available** starting v1.26)
962961
* `photonPersistentDisk` - Photon controller persistent disk.
963962
(**not available** starting v1.15)
964963
* `quobyte` - Quobyte volume.
@@ -976,6 +975,8 @@ Older versions of Kubernetes also supported the following in-tree PersistentVolu
976975
(v1.31 之后**不可用**)
977976
* `flocker` - Flocker 存储。
978977
(v1.25 之后**不可用**)
978+
* `glusterfs` - GlusterFS 存储。
979+
(v1.26 之后**不可用**)
979980
* `photonPersistentDisk` - Photon 控制器持久化盘
980981
(v1.15 之后**不可用**)
981982
* `quobyte` - Quobyte 卷。
@@ -1307,23 +1308,15 @@ Not all Persistent Volume types support mount options.
13071308
<!--
13081309
The following volume types support mount options:
13091310

1310-
* `azureFile`
1311-
* `cephfs` (**deprecated** in v1.28)
1312-
* `cinder` (**deprecated** in v1.18)
1311+
* `csi` (including CSI migrated volume types)
13131312
* `iscsi`
13141313
* `nfs`
1315-
* `rbd` (**deprecated** in v1.28)
1316-
* `vsphereVolume`
13171314
-->
13181315
以下卷类型支持挂载选项:
13191316

1320-
* `azureFile`
1321-
* `cephfs`(于 v1.28 中**弃用**)
1322-
* `cinder`(于 v1.18 中**弃用**)
1317+
* `csi`(包含 CSI 迁移的卷类型)
13231318
* `iscsi`
13241319
* `nfs`
1325-
* `rbd`(于 v1.28 中**弃用**)
1326-
* `vsphereVolume`
13271320

13281321
<!--
13291322
Mount options are not validated. If a mount option is invalid, the mount fails.
@@ -1491,7 +1484,6 @@ in a pending state.
14911484
如果指定的 PV 已经绑定到另一个 PVC,则绑定操作将卡在 Pending 状态。
14921485

14931486
<!--
1494-
14951487
### Resources
14961488

14971489
Claims, like Pods, can request specific quantities of a resource. In this case,
@@ -1564,8 +1556,7 @@ PVC 申领不必一定要请求某个类。如果 PVC 的 `storageClassName` 属
15641556
PV 卷(未设置注解或者注解值为 `""` 的 PersistentVolume(PV)对象在系统中不会被删除,
15651557
因为这样做可能会引起数据丢失)。未设置 `storageClassName` 的 PVC 与此大不相同,
15661558
也会被集群作不同处理。具体筛查方式取决于
1567-
[`DefaultStorageClass` 准入控制器插件](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#defaultstorageclass)
1568-
是否被启用。
1559+
[`DefaultStorageClass` 准入控制器插件](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#defaultstorageclass)是否被启用。
15691560

15701561
<!--
15711562
* If the admission plugin is turned on, the administrator may specify a
@@ -1750,23 +1741,15 @@ applicable:
17501741
以下卷插件支持原始块卷,包括其动态制备(如果支持的话)的卷:
17511742

17521743
<!--
1753-
* CSI
1744+
* CSI (including some CSI migrated volume types)
17541745
* FC (Fibre Channel)
17551746
* iSCSI
17561747
* Local volume
1757-
* OpenStack Cinder
1758-
* RBD (deprecated)
1759-
* RBD (Ceph Block Device; deprecated)
1760-
* VsphereVolume
17611748
-->
1762-
* CSI
1749+
* CSI(包含一些 CSI 迁移的卷类型)
17631750
* FC(光纤通道)
17641751
* iSCSI
17651752
* Local 卷
1766-
* OpenStack Cinder
1767-
* RBD(已弃用)
1768-
* RBD(Ceph 块设备,已弃用)
1769-
* VsphereVolume
17701753

17711754
<!--
17721755
### PersistentVolume using a Raw Block Volume {#persistent-volume-using-a-raw-block-volume}
@@ -1874,7 +1857,7 @@ not given the combinations: Volume binding matrix for statically provisioned vol
18741857
| Filesystem | Block | NO BIND |
18751858
| Filesystem | unspecified | BIND |
18761859
-->
1877-
| PV volumeMode | PVC volumeMode | Result |
1860+
| PV volumeMode | PVC volumeMode | 结果 |
18781861
| --------------|:---------------:| ----------------:|
18791862
| 未指定 | 未指定 | 绑定 |
18801863
| 未指定 | Block | 不绑定 |
@@ -1994,7 +1977,7 @@ kube-apiserver 和 kube-controller-manager 启用 `AnyVolumeDataSource`
19941977

19951978
卷填充器利用了 PVC 规约字段 `dataSourceRef`。
19961979
不像 `dataSource` 字段只能包含对另一个持久卷申领或卷快照的引用,
1997-
`dataSourceRef` 字段可以包含对同一命名空间中任何对象的引用(不包含除 PVC 以外的核心资源)。
1980+
`dataSourceRef` 字段可以包含对同一名字空间中任何对象的引用(不包含除 PVC 以外的核心资源)。
19981981
对于启用了特性门控的集群,使用 `dataSourceRef` 比 `dataSource` 更好。
19991982

20001983
<!--

‎content/zh-cn/docs/concepts/storage/storage-limits.md

+27-28
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ title: 特定于节点的卷数限制
33
content_type: concept
44
weight: 90
55
---
6-
7-
<!-- ---
6+
<!--
87
reviewers:
98
- jsafrane
109
- saad-ali
@@ -13,25 +12,24 @@ reviewers:
1312
title: Node-specific Volume Limits
1413
content_type: concept
1514
weight: 90
16-
---
17-
-->
15+
-->
1816

1917
<!-- overview -->
2018

2119
<!--
2220
This page describes the maximum number of volumes that can be attached
2321
to a Node for various cloud providers.
2422
-->
25-
此页面描述了各个云供应商可关联至一个节点的最大卷数
23+
此页面描述了各个云供应商可挂接至一个节点的最大卷数
2624

2725
<!--
2826
Cloud providers like Google, Amazon, and Microsoft typically have a limit on
2927
how many volumes can be attached to a Node. It is important for Kubernetes to
3028
respect those limits. Otherwise, Pods scheduled on a Node could get stuck
3129
waiting for volumes to attach.
3230
-->
33-
谷歌、亚马逊和微软等云供应商通常对可以关联到节点的卷数量进行限制
34-
Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能会卡住去等待卷的关联
31+
谷歌、亚马逊和微软等云供应商通常对可以挂接到节点的卷数量进行限制
32+
Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能会卡住去等待卷的挂接
3533

3634
<!-- body -->
3735

@@ -41,9 +39,10 @@ Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能
4139
The Kubernetes scheduler has default limits on the number of volumes
4240
that can be attached to a Node:
4341
-->
44-
## Kubernetes 的默认限制
42+
## Kubernetes 的默认限制 {#kubernetes-default-limits}
43+
44+
Kubernetes 调度器对挂接到一个节点的卷数有默认限制:
4545

46-
The Kubernetes 调度器对关联于一个节点的卷数有默认限制:
4746
<!--
4847
<table>
4948
<tr><th>Cloud service</th><th>Maximum volumes per Node</th></tr>
@@ -73,10 +72,10 @@ the limit you set.
7372
7473
The limit applies to the entire cluster, so it affects all Nodes.
7574
-->
76-
## 自定义限制
75+
## 自定义限制 {#custom-limits}
7776

7877
你可以通过设置 `KUBE_MAX_PD_VOLS` 环境变量的值来设置这些限制,然后再启动调度器。
79-
CSI 驱动程序可能具有不同的过程,关于如何自定义其限制请参阅相关文档。
78+
各个 CSI 驱动可能采用不同的步骤,关于如何自定义其限制请参阅相关文档。
8079

8180
如果设置的限制高于默认限制,请谨慎使用。请参阅云提供商的文档以确保节点可支持你设置的限制。
8281

@@ -85,7 +84,7 @@ CSI 驱动程序可能具有不同的过程,关于如何自定义其限制请
8584
<!--
8685
## Dynamic volume limits
8786
-->
88-
## 动态卷限制
87+
## 动态卷限制 {#dynamic-volume-limits}
8988

9089
{{< feature-state state="stable" for_k8s_version="v1.17" >}}
9190

@@ -108,7 +107,7 @@ Dynamic volume limits are supported for following volume types.
108107
For volumes managed by in-tree volume plugins, Kubernetes automatically determines the Node
109108
type and enforces the appropriate maximum number of volumes for the node. For example:
110109
-->
111-
对于由内建插件管理的卷,Kubernetes 会自动确定节点类型并确保节点上可关联的卷数目合规。例如:
110+
对于由树内插件管理的卷,Kubernetes 会自动确定节点类型并确保节点上可挂接的卷数目合规。例如:
112111

113112
<!--
114113
* On
@@ -122,25 +121,25 @@ volumes to be attached to a Node. For other instance types on
122121
Kubernetes allows 39 volumes to be attached to a Node.
123122
124123
* On Azure, up to 64 disks can be attached to a node, depending on the node type. For more details, refer to [Sizes for virtual machines in Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes).
124+
-->
125+
* 在 <a href="https://cloud.google.com/compute/">Google Compute Engine</a> 环境中,
126+
[根据节点类型](https://cloud.google.com/compute/docs/disks/#pdnumberlimits)最多可以将 127 个卷挂接到节点。
125127

128+
* 对于 M5、C5、R5、T3 和 Z1D 实例类型的 Amazon EBS 磁盘,Kubernetes 仅允许 25 个卷挂接到节点。
129+
对于 <a href="https://aws.amazon.com/ec2/">Amazon Elastic Compute Cloud (EC2)</a> 上的其他实例类型,
130+
Kubernetes 允许 39 个卷挂接至节点。
131+
132+
* 在 Azure 环境中,根据节点类型,最多 64 个磁盘可以挂接至一个节点。
133+
更多详细信息,请参阅 [Azure 虚拟机的数量大小](https://docs.microsoft.com/zh-cn/azure/virtual-machines/windows/sizes)
134+
135+
<!--
126136
* If a CSI storage driver advertises a maximum number of volumes for a Node (using `NodeGetInfo`), the {{< glossary_tooltip text="kube-scheduler" term_id="kube-scheduler" >}} honors that limit.
127137
Refer to the [CSI specifications](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo) for details.
128138
129139
* For volumes managed by in-tree plugins that have been migrated to a CSI driver, the maximum number of volumes will be the one reported by the CSI driver.
130140
-->
131-
*
132-
<a href="https://cloud.google.com/compute/">Google Compute Engine</a>环境中,
133-
[根据节点类型](https://cloud.google.com/compute/docs/disks/#pdnumberlimits)最多可以将 127 个卷关联到节点。
134-
135-
* 对于 M5、C5、R5、T3 和 Z1D 类型实例的 Amazon EBS 磁盘,Kubernetes 仅允许 25 个卷关联到节点。
136-
对于 ec2 上的其他实例类型
137-
<a href="https://aws.amazon.com/ec2/">Amazon Elastic Compute Cloud (EC2)</a>,
138-
Kubernetes 允许 39 个卷关联至节点。
139-
140-
* 在 Azure 环境中, 根据节点类型,最多 64 个磁盘可以关联至一个节点。
141-
更多详细信息,请参阅 [Azure 虚拟机的数量大小](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes)
142-
143-
* 如果 CSI 存储驱动程序(使用 `NodeGetInfo` )为节点通告卷数上限,则 {{< glossary_tooltip text="kube-scheduler" term_id="kube-scheduler" >}} 将遵守该限制值。
144-
参考 [CSI 规范](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo) 获取更多详细信息。
141+
* 如果 CSI 存储驱动(使用 `NodeGetInfo`)为节点通告卷数上限,则
142+
{{< glossary_tooltip text="kube-scheduler" term_id="kube-scheduler" >}} 将遵守该限制值。
143+
参考 [CSI 规范](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo)获取更多详细信息。
145144

146-
* 对于由已迁移到 CSI 驱动程序的树内插件管理的卷,最大卷数将是 CSI 驱动程序报告的卷数
145+
* 对于由已迁移到 CSI 驱动的树内插件管理的卷,最大卷数将是 CSI 驱动报告的卷数

0 commit comments

Comments
 (0)