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 @@ -1087,6 +1087,24 @@ Used on: IngressClass
1087
1087
When a IngressClass resource has this annotation set to ` "true" ` , new Ingress resource
1088
1088
without a class specified will be assigned this default class.
1089
1089
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
+
1090
1108
### kubernetes.io/ingress.class (deprecated)
1091
1109
1092
1110
Type: Annotation
You can’t perform that action at this time.
0 commit comments