The konghq.com/headers.*
annotation uses a special format to set headers. The string after the .
in the annotation name is the header name and the annotation value is the header value. For example, to apply x-custom-header-a: example,otherexample
and x-custom-header-b: example
headers to requests, the KongIngress configuration is:
route:
headers:
x-custom-header-a:
- example
- otherexample
x-custom-header-b:
- example
The equivalent annotation configuration looks like:
konghq.com/headers.x-custom-header-a: example,otherexample
konghq.com/headers.x-custom-header-b: example
You cannot apply multiple instances of the same header annotation to set multiple header values. You must set the CSV format within a single header.