Skip to content

Commit 93bc0de

Browse files
committed
added configuration-snippet
1 parent 294a373 commit 93bc0de

File tree

1 file changed

+18
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+18
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,24 @@ Used on: IngressClass
10871087
When a IngressClass resource has this annotation set to `"true"`, new Ingress resource
10881088
without a class specified will be assigned this default class.
10891089

1090+
### nginx.ingress.kubernetes.io/configuration-snippet
1091+
1092+
Type: Annotation
1093+
1094+
Example: `nginx.ingress.kubernetes.io/configuration-snippet: " more_set_headers \"Request-Id: $req_id\";\nmore_set_headers \"Example: 42\";\n"`
1095+
1096+
Used on: Ingress
1097+
1098+
You can use this annotation to set extra configuration on an Ingress that
1099+
uses the [NGINX Ingress Controller] (https://github.com/kubernetes/ingress-nginx/)
1100+
The `configuration-snippet` annotation is ignored
1101+
by default since version 1.9.0 of the ingress controller.
1102+
The NGINX ingress controller setting `allow-snippet-annotations.`
1103+
has to be explicitly enabled to
1104+
use this annotation.
1105+
Enabling the annotation can be dangerous in a multi-tenant cluster, as it can lead people with otherwise
1106+
limited permissions being able to retrieve all Secrets in the cluster.
1107+
10901108
### kubernetes.io/ingress.class (deprecated)
10911109

10921110
Type: Annotation

0 commit comments

Comments
 (0)