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-cn/docs/concepts/configuration/liveness-readiness-startup-probes.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Kubernetes 提供了多种探针:
29
29
<!--
30
30
## Liveness probe
31
31
32
-
Liveness probes determine when to restart a container. For example, liveness probes could catch a deadlock, when an application is running, but unable to make progress.
32
+
Liveness probes determine when to restart a container. For example, liveness probes could catch a deadlock when an application is running, but unable to make progress.
33
33
-->
34
34
## 存活探针 {#liveness-probe}
35
35
@@ -42,8 +42,7 @@ If a container fails its liveness probe repeatedly, the kubelet restarts the con
42
42
如果一个容器的存活探针失败多次,kubelet 将重启该容器。
43
43
44
44
<!--
45
-
Liveness probes do not wait for readiness probes to succeed. If you want to wait before
46
-
executing a liveness probe you can either define `initialDelaySeconds`, or use a
45
+
Liveness probes do not wait for readiness probes to succeed. If you want to wait before executing a liveness probe, you can either define `initialDelaySeconds`, or use a
47
46
[startup probe](#startup-probe).
48
47
-->
49
48
存活探针不会等待就绪探针成功。
@@ -52,7 +51,7 @@ executing a liveness probe you can either define `initialDelaySeconds`, or use a
52
51
<!--
53
52
## Readiness probe
54
53
55
-
Readiness probes determine when a container is ready to start accepting traffic. This is useful when waiting for an application to perform time-consuming initial tasks, such as establishing network connections, loading files, and warming caches.
54
+
Readiness probes determine when a container is ready to start accepting traffic. This is useful when waiting for an application to perform time-consuming initial tasks, such as establishing network connections, loading files, and warming caches.
56
55
-->
57
56
## 就绪探针 {#readiness-probe}
58
57
@@ -62,7 +61,7 @@ Readiness probes determine when a container is ready to start accepting traffic.
62
61
<!--
63
62
If the readiness probe returns a failed state, Kubernetes removes the pod from all matching service endpoints.
64
63
65
-
Readiness probes runs on the container during its whole lifecycle.
64
+
Readiness probes run on the container during its whole lifecycle.
0 commit comments