Skip to content

Commit 82d421d

Browse files
authored
Merge pull request #41558 from KKtheGhost/sync/configuration/manage-resources-containers
[zh] sync concepts/configuration/manage-resources-containers
2 parents 9f72c6c + e848a25 commit 82d421d

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

content/zh-cn/docs/concepts/configuration/manage-resources-containers.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,23 +452,43 @@ kubelet 可以为使用本地临时存储的 Pods 提供这种存储空间,允
452452
The kubelet also uses this kind of storage to hold
453453
[node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level),
454454
container images, and the writable layers of running containers.
455-
456-
If a node fails, the data in its ephemeral storage can be lost.
457-
Your applications cannot expect any performance SLAs (disk IOPS for example)
458-
from local ephemeral storage.
459-
460-
Kubernetes lets you track, reserve and limit the amount
461-
of ephemeral local storage a Pod can consume.
462455
-->
463-
464456
kubelet 也使用此类存储来保存[节点层面的容器日志](/zh-cn/docs/concepts/cluster-administration/logging/#logging-at-the-node-level)、
465457
容器镜像文件以及运行中容器的可写入层。
466458

467459
{{< caution >}}
460+
<!--
461+
If a node fails, the data in its ephemeral storage can be lost.
462+
Your applications cannot expect any performance SLAs (disk IOPS for example)
463+
from local ephemeral storage.
464+
-->
468465
如果节点失效,存储在临时性存储中的数据会丢失。
469466
你的应用不能对本地临时性存储的性能 SLA(例如磁盘 IOPS)作任何假定。
470467
{{< /caution >}}
471468

469+
{{< note >}}
470+
<!--
471+
To make the resource quota work on ephemeral-storage, two things need to be done:
472+
473+
* An admin sets the resource quota for ephemeral-storage in a namespace.
474+
* A user needs to specify limits for the ephemeral-storage resource in the Pod spec.
475+
476+
If the user doesn't specify the ephemeral-storage resource limit in the Pod spec,
477+
the resource quota is not enforced on ephemeral-storage.
478+
-->
479+
为了使临时性存储的资源配额生效,需要完成以下两个步骤:
480+
481+
* 管理员在命名空间中设置临时性存储的资源配额。
482+
* 用户需要在 Pod spec 中指定临时性存储资源的限制。
483+
484+
如果用户在 Pod spec 中未指定临时性存储资源的限制,
485+
则临时性存储的资源配额不会生效。
486+
{{< /note >}}
487+
488+
<!--
489+
Kubernetes lets you track, reserve and limit the amount
490+
of ephemeral local storage a Pod can consume.
491+
-->
472492
Kubernetes 允许你跟踪、预留和限制 Pod
473493
可消耗的临时性本地存储数量。
474494

0 commit comments

Comments
 (0)