File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
content/en/docs/reference/labels-annotations-taints Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1209,6 +1209,24 @@ Used on: IngressClass
1209
1209
When a IngressClass resource has this annotation set to ` "true" ` , new Ingress resource
1210
1210
without a class specified will be assigned this default class.
1211
1211
1212
+ ### nginx.ingress.kubernetes.io/configuration-snippet
1213
+
1214
+ Type: Annotation
1215
+
1216
+ Example: ` nginx.ingress.kubernetes.io/configuration-snippet: " more_set_headers \"Request-Id: $req_id\";\nmore_set_headers \"Example: 42\";\n" `
1217
+
1218
+ Used on: Ingress
1219
+
1220
+ You can use this annotation to set extra configuration on an Ingress that
1221
+ uses the [ NGINX Ingress Controller] (https://github.com/kubernetes/ingress-nginx/ )
1222
+ The ` configuration-snippet ` annotation is ignored
1223
+ by default since version 1.9.0 of the ingress controller.
1224
+ The NGINX ingress controller setting ` allow-snippet-annotations. `
1225
+ has to be explicitly enabled to
1226
+ use this annotation.
1227
+ Enabling the annotation can be dangerous in a multi-tenant cluster, as it can lead people with otherwise
1228
+ limited permissions being able to retrieve all Secrets in the cluster.
1229
+
1212
1230
### kubernetes.io/ingress.class (deprecated)
1213
1231
1214
1232
Type: Annotation
You can’t perform that action at this time.
0 commit comments