You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/reference/using-api/health-checks.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,15 @@ The Kubernetes API server provides 3 API endpoints (`healthz`, `livez` and `read
29
29
The `healthz` endpoint is deprecated (since Kubernetes v1.16), and you should use the more specific `livez` and `readyz` endpoints instead.
30
30
The `livez` endpoint can be used with the `--livez-grace-period` [flag](/docs/reference/command-line-tools-reference/kube-apiserver) to specify the startup duration.
31
31
For a graceful shutdown you can specify the `--shutdown-delay-duration` [flag](/docs/reference/command-line-tools-reference/kube-apiserver) with the `/readyz` endpoint.
32
-
Machines that check the `health`/`livez`/`readyz` of the API server should rely on the HTTP status code.
32
+
Machines that check the `healthz`/`livez`/`readyz` of the API server should rely on the HTTP status code.
33
33
A status code `200` indicates the API server is `healthy`/`live`/`ready`, depending of the called endpoint.
34
34
The more verbose options shown below are intended to be used by human operators to debug their cluster or specially the state of the API server.
35
35
-->
36
36
Kubernetes API 服务器提供 3 个 API 端点(`healthz`、`livez` 和 `readyz`)来表明 API 服务器的当前状态。
检查 API 服务器的 `health`/`livez`/`readyz` 端点的机器应依赖于 HTTP 状态代码。
40
+
检查 API 服务器的 `healthz`/`livez`/`readyz` 端点的机器应依赖于 HTTP 状态代码。
41
41
状态码 `200` 表示 API 服务器是 `healthy`、`live` 还是 `ready`,具体取决于所调用的端点。
42
42
以下更详细的选项供操作人员使用,用来调试其集群或专门调试 API 服务器的状态。
43
43
@@ -46,7 +46,7 @@ Kubernetes API 服务器提供 3 个 API 端点(`healthz`、`livez` 和 `ready
46
46
47
47
<!--
48
48
For all endpoints you can use the `verbose` parameter to print out the checks and their status.
49
-
This can be useful for a human operator to debug the current status of the Api server, it is not intended to be consumed by a machine:
49
+
This can be useful for a human operator to debug the current status of the API server, it is not intended to be consumed by a machine:
50
50
-->
51
51
对于所有端点,都可以使用 `verbose` 参数来打印检查项以及检查状态。
52
52
这对于操作人员调试 API 服务器的当前状态很有用,这些不打算给机器使用:
@@ -130,12 +130,12 @@ healthz check passed
130
130
{{< feature-state state="alpha" >}}
131
131
132
132
<!--
133
-
Each individual health check exposes an http endpoint and could can be checked individually.
133
+
Each individual health check exposes an HTTP endpoint and could can be checked individually.
134
134
The schema for the individual health checks is `/livez/<healthcheck-name>` where `livez` and `readyz` and be used to indicate if you want to check the liveness or the readiness of the API server.
135
135
The `<healthcheck-name>` path can be discovered using the `verbose` flag from above and take the path between `[+]` and `ok`.
136
136
These individual health checks should not be consumed by machines but can be helpful for a human operator to debug a system:
137
137
-->
138
-
每个单独的健康检查都会公开一个 http 端点,并且可以单独检查。
138
+
每个单独的健康检查都会公开一个 HTTP 端点,并且可以单独检查。
139
139
单个运行状况检查的模式为 `/livez/<healthcheck-name>`,其中 `livez` 和 `readyz` 表明你要检查的是 API 服务器是否存活或就绪。
0 commit comments