Fix examples for http probe headers
This commit is contained in:
+16
-8
@@ -389,24 +389,32 @@ You can override the default headers by defining `.httpHeaders` for the probe; f
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpHeaders:
|
httpGet:
|
||||||
Accept: application/json
|
httpHeaders:
|
||||||
|
- name: Accept
|
||||||
|
value: application/json
|
||||||
|
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpHeaders:
|
httpGet:
|
||||||
User-Agent: MyUserAgent
|
httpHeaders:
|
||||||
|
- 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:
|
||||||
httpHeaders:
|
httpGet:
|
||||||
Accept: ""
|
httpHeaders:
|
||||||
|
- name: Accept
|
||||||
|
value: ""
|
||||||
|
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpHeaders:
|
httpGet:
|
||||||
User-Agent: ""
|
httpHeaders:
|
||||||
|
- name: User-Agent
|
||||||
|
value: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
### TCP probes
|
### TCP probes
|
||||||
|
|||||||
Reference in New Issue
Block a user