Skip to content

Commit

Permalink
added configuration-snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
kundan2707 committed Nov 15, 2023
1 parent 294a373 commit 4b225b4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions content/en/docs/reference/labels-annotations-taints/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,22 @@ Used on: IngressClass
When a IngressClass resource has this annotation set to `"true"`, new Ingress resource
without a class specified will be assigned this default class.

### nginx.ingress.kubernetes.io/configuration-snippet

Type: Annotation

Example: `nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Request-Id: $req_id";`

Used on: Ingress

With use of this annotation someone can add additional configuration to the
Nginx location as mentioned in example above. `configuration-snippet` annotation is disabled
by default Since version 1.9.0. `allow-snippet-annotations.` has to be explicitly enabled to
use this annotation.
Enabling it can be dangerous in multi-tenant cluster, as it can lead people with otherwise
limited permissions being able to retrieve all secrets of cluster.

### kubernetes.io/ingress.class (deprecated)

Type: Annotation
Expand Down

0 comments on commit 4b225b4

Please sign in to comment.