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
To use a gRPC probe, `port` must be configured. If the health endpoint is configured
404
-
on a non-default service, you must also specify the `service`.
405
-
-->
406
-
要使用 gRPC 探针,必须配置 `port` 属性。如果健康状态端点配置在非默认服务之上,
407
-
你还必须设置 `service` 属性。
404
+
To use a gRPC probe, `port` must be configured. If you want to distinguish probes of different types
405
+
and probes for different features you can use the `service` field.
406
+
You can set `service` to the value `liveness` and make your gRPC Health Checking endpoint
407
+
respond to this request differently then when you set `service` set to `readiness`.
408
+
This lets you use the same endpoint for different kinds of container health check
409
+
(rather than needing to listen on two different ports).
410
+
If you want to specify your own custom service name and also specify a probe type,
411
+
the Kubernetes project recommends that you use a name that concatenates
412
+
those. For example: `myservice-liveness` (using `-` as a separator).
413
+
-->
414
+
要使用 gRPC 探针,必须配置 `port` 属性。
415
+
如果要区分不同类型的探针和不同功能的探针,可以使用 `service` 字段。
416
+
你可以将 `service` 设置为 `liveness`,并使你的 gRPC
417
+
健康检查端点对该请求的响应与将 `service` 设置为 `readiness` 时不同。
418
+
这使你可以使用相同的端点进行不同类型的容器健康检查(而不需要在两个不同的端口上侦听)。
419
+
如果你想指定自己的自定义服务名称并指定探测类型,Kubernetes
420
+
项目建议你使用使用一个可以关联服务和探测类型的名称来命名。
421
+
例如:`myservice-liveness`(使用 `-` 作为分隔符)。
408
422
409
423
{{< note >}}
410
424
<!--
411
-
Unlike HTTP and TCP probes, named ports cannot be used and custom host cannot be configured.
425
+
Unlike HTTP and TCP probes, you cannot specify the healthcheck port by name, and you
426
+
cannot configure a custom hostname.
412
427
-->
413
-
与 HTTP 和 TCP 探针不同,gRPC 探测不能使用命名端口或定制主机。
428
+
与 HTTP 和 TCP 探针不同,gRPC 探测不能使用按名称指定端口,
429
+
也不能自定义主机名。
414
430
{{< /note >}}
415
431
416
432
<!--
@@ -580,7 +596,7 @@ Readiness probes runs on the container during its whole lifecycle.
580
596
<!--
581
597
Liveness probes *do not* wait for readiness probes to succeed. If you want to wait before executing a liveness probe you should use initialDelaySeconds or a startupProbe.
0 commit comments