Skip to content

Commit 567a6c2

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

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
@@ -338,7 +338,13 @@ nginx.ingress.kubernetes.io/custom-http-errors: "404,415"
338338
```
339339

340340
### Custom Headers
341-
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.
341+
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.
342+
343+
Example annotation for following example configmap:
344+
345+
```yaml
346+
nginx.ingress.kubernetes.io/custom-headers: default/custom-headers-configmap
347+
```
342348

343349
Example configmap:
344350
```yaml
@@ -348,6 +354,7 @@ data:
348354
kind: ConfigMap
349355
metadata:
350356
name: custom-headers-configmap
357+
namespace: default
351358
```
352359

353360
!!! attention

0 commit comments

Comments
 (0)