VirtualService.spec.http[].match
Match conditions to be satisfied for the rule to be activated.
| Field / Type | Description |
|---|---|
HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). | |
Names of gateways where the rule should be applied. | |
The header keys must be lowercase and use hyphen as the separator, e.g. | |
ignoreUriCase | Flag to specify whether the URI matching should be case-insensitive. |
HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). | |
name | The name assigned to a match. |
port | Specifies the ports on the host that is being addressed.
|
Query parameters for matching. | |
URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). | |
One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels. | |
sourceNamespace | Source namespace constraining the applicability of a rule to workloads in that namespace. |
statPrefix | The human readable prefix to use when emitting statistics for this route. |
URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). | |
withoutHeader has the same syntax with the header, but has opposite meaning. |