Skip to content

Commit 1c9c2f0

Browse files
authored
Merge pull request #34407 from yanrongshi/zh]-update/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md
[zh] update/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md
2 parents 5cbe4c9 + 14aef87 commit 1c9c2f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,14 +709,14 @@ case, you should not use `host`, but rather set the `Host` header in `httpHeader
709709

710710
<!--
711711
For an HTTP probe, the kubelet sends two request headers in addition to the mandatory `Host` header:
712-
`User-Agent`, and `Accept`. The default values for these headers are `kube-probe/{{< skew latestVersion >}}`
713-
(where `{{< skew latestVersion >}}` is the version of the kubelet ), and `*/*` respectively.
712+
`User-Agent`, and `Accept`. The default values for these headers are `kube-probe/{{< skew currentVersion >}}`
713+
(where `{{< skew currentVersion >}}` is the version of the kubelet ), and `*/*` respectively.
714714

715715
You can override the default headers by defining `.httpHeaders` for the probe; for example
716716
-->
717717
针对 HTTP 探针,kubelet 除了必需的 `Host` 头部之外还发送两个请求头部字段:
718-
`User-Agent` 和 `Accept`。这些头部的默认值分别是 `kube-probe/{{ skew latestVersion >}}`
719-
(其中 `{{< skew latestVersion >}}` 是 kubelet 的版本号)和 `*/*`。
718+
`User-Agent` 和 `Accept`。这些头部的默认值分别是 `kube-probe/{{ skew currentVersion >}}`
719+
(其中 `{{< skew currentVersion >}}` 是 kubelet 的版本号)和 `*/*`。
720720

721721
你可以通过为探测设置 `.httpHeaders` 来重载默认的头部字段值;例如:
722722

0 commit comments

Comments
 (0)