Merge pull request #24991 from fonsecas72/default-headers-http-probe

HTTP Probe - Update documentation about default headers
pull/24849/head
Kubernetes Prow Robot 2020-11-12 11:38:26 -08:00 committed by GitHub
commit 9d0d7f021f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -381,9 +381,9 @@ and the Pod's `hostNetwork` field is true. Then `host`, under `httpGet`, should
to 127.0.0.1. If your pod relies on virtual hosts, which is probably the more common to 127.0.0.1. If your pod relies on virtual hosts, which is probably the more common
case, you should not use `host`, but rather set the `Host` header in `httpHeaders`. case, you should not use `host`, but rather set the `Host` header in `httpHeaders`.
For an HTTP probe, the kubelet sends three request headers in addition to the mandatory `Host` header: For an HTTP probe, the kubelet sends two request headers in addition to the mandatory `Host` header:
`User-Agent`, `Accept-Encoding` and `Accept`. The default values for these headers are `kube-probe/{{< skew latestVersion >}}` `User-Agent`, and `Accept`. The default values for these headers are `kube-probe/{{< skew latestVersion >}}`
(where `{{< skew latestVersion >}}` is the version of the kubelet ), `gzip` and `*/*` respectively. (where `{{< skew latestVersion >}}` is the version of the kubelet ), and `*/*` respectively.
You can override the default headers by defining `.httpHeaders` for the probe; for example You can override the default headers by defining `.httpHeaders` for the probe; for example