From 03d85fb8b8982e992dd24a2b3fd0169f6bc534bd Mon Sep 17 00:00:00 2001 From: xin gu <418294249@qq.com> Date: Wed, 24 Apr 2024 20:53:22 +0800 Subject: [PATCH] sync resize-container-resources user-namespaces --- .../resize-container-resources.md | 26 ++++++++++++++++--- .../user-namespaces.md | 9 +++---- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/content/zh-cn/docs/tasks/configure-pod-container/resize-container-resources.md b/content/zh-cn/docs/tasks/configure-pod-container/resize-container-resources.md index 8eaa836506..b8ade17e97 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/resize-container-resources.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/resize-container-resources.md @@ -13,7 +13,7 @@ min-kubernetes-server-version: 1.27 -{{< feature-state state="alpha" for_k8s_version="v1.27" >}} +{{< feature-state feature_gate_name="InPlacePodVerticalScaling" >}} +要为正在运行的 Pod 更改资源分配量,需要启用 `InPlacePodVerticalScaling` +[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)。 +并让[工作负载控制器](/zh-cn/docs/concepts/workloads/controllers/)创建一个具有不同资源需求的新 Pod。 + +你必须在控制平面和集群中的所有节点上启用 `InPlacePodVerticalScaling` +[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)。 + ## 更新 Pod 的资源 {#updating-pod-resources} -假设要求的 CPU 需求已上升,现在需要 0.8 CPU。这通常由 +假设要求的 CPU 需求已上升,现在需要 0.8 CPU。这可以手动指定,或由如 [VerticalPodAutoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#readme) (VPA) 这样的实体确定并可能以编程方式应用。 diff --git a/content/zh-cn/docs/tasks/configure-pod-container/user-namespaces.md b/content/zh-cn/docs/tasks/configure-pod-container/user-namespaces.md index 15ffaf0b6f..1a8ec44f1e 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/user-namespaces.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/user-namespaces.md @@ -15,14 +15,13 @@ min-kubernetes-server-version: v1.25 --> -{{< feature-state for_k8s_version="v1.25" state="beta" >}} +{{< feature-state feature_gate_name="UserNamespacesSupport" >}} -本页展示如何为无状态 Pod 配置 user 名字空间。可以将容器内的用户与主机上的用户隔离开来。 +本页展示如何为 Pod 配置 user 名字空间。可以将容器内的用户与主机上的用户隔离开来。