Skip to content

Commit 74ab4e5

Browse files
authored
Merge pull request #30663 from fenggw-fnst/update-health-checks
[zh] Update health-checks.md
2 parents b3219ad + 6dd8766 commit 74ab4e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/zh/docs/reference/using-api/health-checks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ The `healthz` endpoint is deprecated (since Kubernetes v1.16), and you should us
3030
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.
3131
For a graceful shutdown you can specify the `--shutdown-delay-duration` [flag](/docs/reference/command-line-tools-reference/kube-apiserver) with the `/readyz` endpoint.
3232
Machines that check the `healthz`/`livez`/`readyz` of the API server should rely on the HTTP status code.
33-
A status code `200` indicates the API server is `healthy`/`live`/`ready`, depending of the called endpoint.
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.
33+
A status code `200` indicates the API server is `healthy`/`live`/`ready`, depending on the called endpoint.
34+
The more verbose options shown below are intended to be used by human operators to debug their cluster or understand the state of the API server.
3535
-->
3636
Kubernetes API 服务器提供 3 个 API 端点(`healthz``livez``readyz`)来表明 API 服务器的当前状态。
3737
`healthz` 端点已被弃用(自 Kubernetes v1.16 起),你应该使用更为明确的 `livez``readyz` 端点。
3838
`livez` 端点可与 `--livez-grace-period` [标志](/zh/docs/reference/command-line-tools-reference/kube-apiserver)一起使用,来指定启动持续时间。
3939
为了正常关机,你可以使用 `/readyz` 端点并指定 `--shutdown-delay-duration` [标志](/zh/docs/reference/command-line-tools-reference/kube-apiserver)
4040
检查 API 服务器的 `healthz`/`livez`/`readyz` 端点的机器应依赖于 HTTP 状态代码。
4141
状态码 `200` 表示 API 服务器是 `healthy``live` 还是 `ready`,具体取决于所调用的端点。
42-
以下更详细的选项供操作人员使用,用来调试其集群或专门调试 API 服务器的状态。
42+
以下更详细的选项供操作人员使用,用来调试其集群或了解 API 服务器的状态。
4343

4444
<!-- The following examples will show how you can interact with the health API endpoints. -->
4545
以下示例将显示如何与运行状况 API 端点进行交互。
4646

4747
<!--
48-
For all endpoints you can use the `verbose` parameter to print out the checks and their status.
48+
For all endpoints, you can use the `verbose` parameter to print out the checks and their status.
4949
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:
5050
-->
5151
对于所有端点,都可以使用 `verbose` 参数来打印检查项以及检查状态。
@@ -130,7 +130,7 @@ healthz check passed
130130
{{< feature-state state="alpha" >}}
131131

132132
<!--
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 can be checked individually.
134134
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.
135135
The `<healthcheck-name>` path can be discovered using the `verbose` flag from above and take the path between `[+]` and `ok`.
136136
These individual health checks should not be consumed by machines but can be helpful for a human operator to debug a system:

0 commit comments

Comments
 (0)