Fix examples for http probe headers

pull/25767/head
Sergey Shevelev 2020-12-22 13:58:55 -05:00 committed by GitHub
parent ec80275820
commit 7e4e475611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 8 deletions

View File

@ -389,24 +389,32 @@ You can override the default headers by defining `.httpHeaders` for the probe; f
```yaml
livenessProbe:
httpHeaders:
Accept: application/json
httpGet:
httpHeaders:
- name: Accept
value: application/json
startupProbe:
httpHeaders:
User-Agent: MyUserAgent
httpGet:
httpHeaders:
- name: User-Agent
value: MyUserAgent
```
You can also remove these two headers by defining them with an empty value.
```yaml
livenessProbe:
httpHeaders:
Accept: ""
httpGet:
httpHeaders:
- name: Accept
value: ""
startupProbe:
httpHeaders:
User-Agent: ""
httpGet:
httpHeaders:
- name: User-Agent
value: ""
```
### TCP probes