From 6aba2f2a94eaf132a4ef806394ccf74e39d1274d Mon Sep 17 00:00:00 2001 From: James Spurin Date: Thu, 11 Apr 2024 17:48:31 +0100 Subject: [PATCH] zh-cn equivalent for pr 45837 --- .../configure-liveness-readiness-startup-probes.md | 4 ++-- content/zh-cn/examples/pods/probe/http-liveness.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md b/content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md index 2c049a8183..33adbeb81e 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md @@ -222,12 +222,12 @@ liveness-exec 1/1 Running 1 1m ## Define a liveness HTTP request Another kind of liveness probe uses an HTTP GET request. Here is the configuration -file for a Pod that runs a container based on the `registry.k8s.io/liveness` image. +file for a Pod that runs a container based on the `registry.k8s.io/e2e-test-images/agnhost` image. --> ## 定义一个存活态 HTTP 请求接口 {#define-a-liveness-HTTP-request} 另外一种类型的存活探测方式是使用 HTTP GET 请求。 -下面是一个 Pod 的配置文件,其中运行一个基于 `registry.k8s.io/liveness` 镜像的容器。 +下面是一个 Pod 的配置文件,其中运行一个基于 `registry.k8s.io/e2e-test-images/agnhost` 镜像的容器。 {{% code_sample file="pods/probe/http-liveness.yaml" %}} diff --git a/content/zh-cn/examples/pods/probe/http-liveness.yaml b/content/zh-cn/examples/pods/probe/http-liveness.yaml index 48ca861c14..ecc1a6ff2e 100644 --- a/content/zh-cn/examples/pods/probe/http-liveness.yaml +++ b/content/zh-cn/examples/pods/probe/http-liveness.yaml @@ -7,9 +7,9 @@ metadata: spec: containers: - name: liveness - image: registry.k8s.io/liveness + image: registry.k8s.io/e2e-test-images/agnhost:2.40 args: - - /server + - liveness livenessProbe: httpGet: path: /healthz