zh-cn equivalent for pr 45837
parent
524a513f42
commit
6aba2f2a94
|
@ -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" %}}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue