Skip to content

Commit af095e4

Browse files
authored
Update custom headers annotation documentation (#12317)
Signed-off-by: Satyam Zode <[email protected]> Co-authored-by: Satyam Zode <[email protected]>
1 parent b3742aa commit af095e4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/user-guide/nginx-configuration/annotations.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,13 @@ nginx.ingress.kubernetes.io/custom-http-errors: "404,415"
335335
```
336336

337337
### Custom Headers
338-
This annotation is of the form `nginx.ingress.kubernetes.io/custom-headers: custom-headers-configmap` to specify a configmap name that contains custom headers. This annotation uses `more_set_headers` nginx directive.
338+
This annotation is of the form `nginx.ingress.kubernetes.io/custom-headers: <namespace>/<custom headers configmap>` to specify a namespace and configmap name that contains custom headers. This annotation uses `more_set_headers` nginx directive.
339+
340+
Example annotation for following example configmap:
341+
342+
```yaml
343+
nginx.ingress.kubernetes.io/custom-headers: default/custom-headers-configmap
344+
```
339345

340346
Example configmap:
341347
```yaml
@@ -345,6 +351,7 @@ data:
345351
kind: ConfigMap
346352
metadata:
347353
name: custom-headers-configmap
354+
namespace: default
348355
```
349356

350357
!!! attention

0 commit comments

Comments
 (0)