Skip to content

Commit 3798bc7

Browse files
authored
Merge pull request #53441 from kelbrown20/BZ198059-intress-controller-fields
BZ1998059: Adding parameters to ingress controller
2 parents e844d18 + a9e93d5 commit 3798bc7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

modules/nw-ingress-controller-configuration-parameters.adoc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,43 @@ For request headers, these adjustments are applied only for routes that have the
206206
|`httpErrorCodePages`
207207
|`httpErrorCodePages` specifies custom HTTP error code response pages. By default, an IngressController uses error pages built into the IngressController image.
208208

209+
|`httpCaptureCookies`
210+
|`httpCaptureCookies` specifies HTTP cookies that you want to capture in access logs. If the `httpCaptureCookies` field is empty, the access logs do not capture the cookies.
211+
212+
For any cookie that you want to capture, the following parameters must be in your `IngressController` configuration:
213+
214+
* `name` specifies the name of the cookie.
215+
* `maxLength` specifies tha maximum length of the cookie.
216+
* `matchType` specifies if the field `name` of the cookie exactly matches the capture cookie setting or is a prefix of the capture cookie setting. The `matchType` field uses the `Exact` and `Prefix` parameters.
217+
218+
For example:
219+
[source,yaml]
220+
----
221+
httpCaptureCookies:
222+
- matchType: Exact
223+
maxLength: 128
224+
name: MYCOOKIE
225+
----
226+
227+
|`httpCaptureHeaders`
228+
|`httpCaptureHeaders` specifies the HTTP headers that you want to capture in the access logs. If the `httpCaptureHeaders` field is empty, the access logs do not capture the headers.
229+
230+
`httpCaptureHeaders` contains two lists of headers to capture in the access logs. The two lists of header fields are `request` and `response`. In both lists, the `name` field must specify the header name and the `maxlength` field must specify the maximum length of the header. For example:
231+
232+
[source,yaml]
233+
----
234+
httpCaptureHeaders:
235+
request:
236+
- maxLength: 256
237+
name: Connection
238+
- maxLength: 128
239+
name: User-Agent
240+
response:
241+
- maxLength: 256
242+
name: Content-Type
243+
- maxLength: 256
244+
name: Content-Length
245+
----
209246
|`tuningOptions`
210247
|`tuningOptions` specifies options for tuning the performance of Ingress Controller pods.
211248

0 commit comments

Comments
 (0)