From cc8009436e8b143de24c28970ee7d2830c8ab0ec Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Mon, 6 May 2024 23:17:24 +0800 Subject: [PATCH] [zh-cn]sync container-lifecycle-hooks configure-redis-using-configmap Signed-off-by: xin.li --- .../docs/concepts/containers/container-lifecycle-hooks.md | 7 +++---- .../configuration/configure-redis-using-configmap.md | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/content/zh-cn/docs/concepts/containers/container-lifecycle-hooks.md b/content/zh-cn/docs/concepts/containers/container-lifecycle-hooks.md index 0fa1872770..d356c736bc 100644 --- a/content/zh-cn/docs/concepts/containers/container-lifecycle-hooks.md +++ b/content/zh-cn/docs/concepts/containers/container-lifecycle-hooks.md @@ -98,16 +98,15 @@ There are three types of hook handlers that can be implemented for Containers: Resources consumed by the command are counted against the Container. * HTTP - Executes an HTTP request against a specific endpoint on the Container. * Sleep - Pauses the container for a specified duration. - The "Sleep" action is available when the [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) - `PodLifecycleSleepAction` is enabled. + This is a beta-level feature default enabled by the `PodLifecycleSleepAction` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). --> * Exec - 在容器的 cgroups 和名字空间中执行特定的命令(例如 `pre-stop.sh`)。 命令所消耗的资源计入容器的资源消耗。 * HTTP - 对容器上的特定端点执行 HTTP 请求。 * Sleep - 将容器暂停一段指定的时间。 - 当[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/) `PodLifecycleSleepAction` 被启用时, - “Sleep” 操作才可用。 + 这是由 `PodLifecycleSleepAction` + [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)默认启用的 Beta 级特性。 @@ -357,5 +359,7 @@ kubectl delete pod/redis configmap/example-redis-config * 了解有关 [ConfigMap](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/) 的更多信息。 +* 学习[通过 ConfigMap 更新配置](/zh-cn/docs/tutorials/configuration/updating-configuration-via-a-configmap/)的示例。