Skip to content

Commit 68283af

Browse files
authored
Merge pull request #47156 from my-git9/pc-3773
[zh-cn] sync storage/volumes.md
2 parents f198e51 + c91eac4 commit 68283af

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,27 @@ overlays), the `emptyDir` may run out of capacity before this limit.
470470

471471
{{< note >}}
472472
<!--
473-
If the `SizeMemoryBackedVolumes` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled,
474-
you can specify a size for memory backed volumes. If no size is specified, memory
475-
backed volumes are sized to node allocatable memory.
473+
You can specify a size for memory backed volumes, provided that the `SizeMemoryBackedVolumes`
474+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
475+
is enabled in your cluster (this has been beta, and active by default, since the Kubernetes 1.22 release).
476+
If you don't specify a volume size, memory backed volumes are sized to node allocatable memory.
476477
-->
477-
当启用 `SizeMemoryBackedVolumes` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)时,
478-
你可以为基于内存提供的卷指定大小。
479-
如果未指定大小,内存提供的卷的大小根据节点可分配内存进行调整。
478+
你可以指定内存作为介质的卷的大小,前提是集群中启用了 `SizeMemoryBackedVolumes`
479+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
480+
(自 Kubernetes 1.22 发布以来,此特性一直处于 Beta 阶段,并且默认启用)。
481+
如果你未指定大小,内存作为介质的卷的大小根据节点可分配内存进行调整。
480482
{{< /note>}}
481483

484+
{{< caution >}}
485+
<!--
486+
Please check [here](/docs/concepts/configuration/manage-resources-containers/#memory-backed-emptydir)
487+
for points to note in terms of resource management when using memory-backed `emptyDir`.
488+
-->
489+
使用内存作为介质的 `emptyDir` 卷时,
490+
请查阅[此处](/zh-cn/docs/concepts/configuration/manage-resources-containers/#memory-backed-emptydir),
491+
了解有关资源管理方面的注意事项。
492+
{{< /caution >}}
493+
482494
<!--
483495
#### emptyDir configuration example
484496
-->

0 commit comments

Comments
 (0)