Merge pull request #25767 from shevelevs/shevelevs/probes-http-headers

Fix examples for http probe headers
This commit is contained in:
Kubernetes Prow Robot
2020-12-22 14:36:26 -08:00
committed by GitHub
@@ -389,24 +389,32 @@ You can override the default headers by defining `.httpHeaders` for the probe; f
```yaml ```yaml
livenessProbe: livenessProbe:
httpGet:
httpHeaders: httpHeaders:
Accept: application/json - name: Accept
value: application/json
startupProbe: startupProbe:
httpGet:
httpHeaders: httpHeaders:
User-Agent: MyUserAgent - name: User-Agent
value: MyUserAgent
``` ```
You can also remove these two headers by defining them with an empty value. You can also remove these two headers by defining them with an empty value.
```yaml ```yaml
livenessProbe: livenessProbe:
httpGet:
httpHeaders: httpHeaders:
Accept: "" - name: Accept
value: ""
startupProbe: startupProbe:
httpGet:
httpHeaders: httpHeaders:
User-Agent: "" - name: User-Agent
value: ""
``` ```
### TCP probes ### TCP probes