Skip to content

Commit

Permalink
Merge pull request #35579 from kinzhi/kinzhi195
Browse files Browse the repository at this point in the history
[zh-cn] Sync configure-liveness-readiness-startup-probes.md
  • Loading branch information
k8s-ci-robot committed Aug 2, 2022
2 parents a96bea1 + 948b2d1 commit 09084b0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ kubectl describe pod liveness-exec

<!--
At the bottom of the output, there are messages indicating that the liveness
probes have failed, and the containers have been killed and recreated.
probes have failed, and the failed containers have been killed and recreated.
-->
在输出结果的最下面,有信息显示存活探测器失败了,这个容器被杀死并且被重建了
在输出结果的最下面,有信息显示存活探测器失败了,这个失败的容器被杀死并且被重建了

```
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
Expand All @@ -171,9 +171,9 @@ kubectl get pod liveness-exec
```

<!--
The output shows that `RESTARTS` has been incremented:
The output shows that `RESTARTS` has been incremented. Note that the `RESTARTS` counter increments as soon as a failed container comes back to the running state:
-->
输出结果显示 `RESTARTS` 的值增加了 1。
输出结果显示 `RESTARTS` 的值增加了 1。请注意,一旦失败的容器恢复为运行状态,`RESTARTS` 计数器就会增加 1:

```
NAME READY STATUS RESTARTS AGE
Expand Down Expand Up @@ -816,11 +816,11 @@ those existing Pods.
<!--
When you (or the control plane, or some other component) create replacement
Pods, and the feature gate `ProbeTerminationGracePeriod` is disabled, then the
API server ignores the Pod-level `terminationGracePeriodSeconds` field, even if
API server ignores the Probe-level `terminationGracePeriodSeconds` field, even if
a Pod or pod template specifies it.
-->
当你(或控制平面或某些其他组件)创建替换 Pod,并且特性门控 `ProbeTerminationGracePeriod`
被禁用时,API 服务器会忽略 Pod 级别的 `terminationGracePeriodSeconds` 字段设置,
被禁用时,API 服务器会忽略探针级别的 `terminationGracePeriodSeconds` 字段设置,
即使 Pod 或 Pod 模板指定了它。

例如:
Expand Down

0 comments on commit 09084b0

Please sign in to comment.