@@ -452,23 +452,43 @@ kubelet 可以为使用本地临时存储的 Pods 提供这种存储空间,允
452
452
The kubelet also uses this kind of storage to hold
453
453
[node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level),
454
454
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.
462
455
-->
463
-
464
456
kubelet 也使用此类存储来保存[节点层面的容器日志](/zh-cn/docs/concepts/cluster-administration/logging/#logging-at-the-node-level)、
465
457
容器镜像文件以及运行中容器的可写入层。
466
458
467
459
{{< 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
+ -->
468
465
如果节点失效,存储在临时性存储中的数据会丢失。
469
466
你的应用不能对本地临时性存储的性能 SLA(例如磁盘 IOPS)作任何假定。
470
467
{{< /caution >}}
471
468
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
+ -->
472
492
Kubernetes 允许你跟踪、预留和限制 Pod
473
493
可消耗的临时性本地存储数量。
474
494
0 commit comments