@@ -3,8 +3,7 @@ title: 特定于节点的卷数限制
3
3
content_type : concept
4
4
weight : 90
5
5
---
6
-
7
- <!-- ---
6
+ <!--
8
7
reviewers:
9
8
- jsafrane
10
9
- saad-ali
@@ -13,25 +12,24 @@ reviewers:
13
12
title: Node-specific Volume Limits
14
13
content_type: concept
15
14
weight: 90
16
- ---
17
- -->
15
+ -->
18
16
19
17
<!-- overview -->
20
18
21
19
<!--
22
20
This page describes the maximum number of volumes that can be attached
23
21
to a Node for various cloud providers.
24
22
-->
25
- 此页面描述了各个云供应商可关联至一个节点的最大卷数 。
23
+ 此页面描述了各个云供应商可挂接至一个节点的最大卷数 。
26
24
27
25
<!--
28
26
Cloud providers like Google, Amazon, and Microsoft typically have a limit on
29
27
how many volumes can be attached to a Node. It is important for Kubernetes to
30
28
respect those limits. Otherwise, Pods scheduled on a Node could get stuck
31
29
waiting for volumes to attach.
32
30
-->
33
- 谷歌、亚马逊和微软等云供应商通常对可以关联到节点的卷数量进行限制 。
34
- Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能会卡住去等待卷的关联 。
31
+ 谷歌、亚马逊和微软等云供应商通常对可以挂接到节点的卷数量进行限制 。
32
+ Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能会卡住去等待卷的挂接 。
35
33
36
34
<!-- body -->
37
35
@@ -41,9 +39,10 @@ Kubernetes 需要尊重这些限制。否则,在节点上调度的 Pod 可能
41
39
The Kubernetes scheduler has default limits on the number of volumes
42
40
that can be attached to a Node:
43
41
-->
44
- ## Kubernetes 的默认限制
42
+ ## Kubernetes 的默认限制 {#kubernetes-default-limits}
43
+
44
+ Kubernetes 调度器对挂接到一个节点的卷数有默认限制:
45
45
46
- The Kubernetes 调度器对关联于一个节点的卷数有默认限制:
47
46
<!--
48
47
<table>
49
48
<tr><th>Cloud service</th><th>Maximum volumes per Node</th></tr>
@@ -73,10 +72,10 @@ the limit you set.
73
72
74
73
The limit applies to the entire cluster, so it affects all Nodes.
75
74
-->
76
- ## 自定义限制
75
+ ## 自定义限制 {#custom-limits}
77
76
78
77
你可以通过设置 ` KUBE_MAX_PD_VOLS ` 环境变量的值来设置这些限制,然后再启动调度器。
79
- CSI 驱动程序可能具有不同的过程 ,关于如何自定义其限制请参阅相关文档。
78
+ 各个 CSI 驱动可能采用不同的步骤 ,关于如何自定义其限制请参阅相关文档。
80
79
81
80
如果设置的限制高于默认限制,请谨慎使用。请参阅云提供商的文档以确保节点可支持你设置的限制。
82
81
@@ -85,7 +84,7 @@ CSI 驱动程序可能具有不同的过程,关于如何自定义其限制请
85
84
<!--
86
85
## Dynamic volume limits
87
86
-->
88
- ## 动态卷限制
87
+ ## 动态卷限制 {#dynamic-volume-limits}
89
88
90
89
{{< feature-state state="stable" for_k8s_version="v1.17" >}}
91
90
@@ -108,7 +107,7 @@ Dynamic volume limits are supported for following volume types.
108
107
For volumes managed by in-tree volume plugins, Kubernetes automatically determines the Node
109
108
type and enforces the appropriate maximum number of volumes for the node. For example:
110
109
-->
111
- 对于由内建插件管理的卷 ,Kubernetes 会自动确定节点类型并确保节点上可关联的卷数目合规 。例如:
110
+ 对于由树内插件管理的卷 ,Kubernetes 会自动确定节点类型并确保节点上可挂接的卷数目合规 。例如:
112
111
113
112
<!--
114
113
* On
@@ -122,25 +121,25 @@ volumes to be attached to a Node. For other instance types on
122
121
Kubernetes allows 39 volumes to be attached to a Node.
123
122
124
123
* 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 个卷挂接到节点。
125
127
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
+ <!--
126
136
* 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.
127
137
Refer to the [CSI specifications](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo) for details.
128
138
129
139
* 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.
130
140
-->
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 ) 获取更多详细信息。
145
144
146
- * 对于由已迁移到 CSI 驱动程序的树内插件管理的卷 ,最大卷数将是 CSI 驱动程序报告的卷数 。
145
+ * 对于由已迁移到 CSI 驱动的树内插件管理的卷 ,最大卷数将是 CSI 驱动报告的卷数 。
0 commit comments