Apply suggestions from code review
Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
This commit is contained in:
parent
5cdf102222
commit
ceb5afc408
|
@ -11,7 +11,7 @@ This topic provides full details about the `MeshService` resource.
|
|||
|
||||
## Introduction
|
||||
|
||||
A `MeshService` is a resource in the Kubernetes cluster that represents a service in the Consul service mesh outside the Kubernetes cluster where Consul API Gateway is deployed. The service must be in the same Consul datacenter. The MeshService exists so that other configuration models in Kubernetes, such as HTTPRoute and TCPRoute, can reference services that only exist in Consul.
|
||||
A `MeshService` is a resource in the Kubernetes cluster that enables Kubernetes configuration models, such as `HTTPRoute` and `TCPRoute`, to reference services that only exist in Consul. A `MeshService` represents a service in the Consul service mesh outside the Kubernetes cluster where Consul API Gateway is deployed. The service represented by the `MeshService` resource must be in the same Consul datacenter as the Kubernetes cluster.
|
||||
|
||||
|
||||
## Configuration Model
|
||||
|
|
|
@ -220,7 +220,7 @@ Specifies rules for matching incoming requests. You can apply [`filters`](#rules
|
|||
* [headers](#rules-matches-headers)
|
||||
* [query parameters](#rules-matches-queryparams)
|
||||
* [request method](#rules-matches-method)
|
||||
|
||||
Each rule matches requests independently. As a result, a request matching any of the conditions is considered a match. You can configure several matching rules for each type to widen or narrow matches.
|
||||
### rules.matches.path
|
||||
|
||||
Specifies a list of objects that define matches based on URL path. The following table describes the parameters for the `path` field:
|
||||
|
@ -228,7 +228,7 @@ Specifies a list of objects that define matches based on URL path. The following
|
|||
| Parameter | Description | Type | Required |
|
||||
| --- | --- | --- | --- |
|
||||
| `type` | Specifies the type of comparison to use for matching the path value. You can specify the following types. <ul><li>`Exact`: Returns a match only when the entire path matches the `value` field (default).</li><li> `PathPrefix`: Returns a match when the path matches the regex defined in the `value` field.</li></ul> | String | Required |
|
||||
| `value` | Specifies value to match on. You can specify a specific string or a regular expression. | String | Required |
|
||||
| `value` | Specifies the value to match on. You can specify a specific string when `type` is `Exact` or `PathPrefix`. You can specify a regular expression if `type` is `RegularExpression`. | String | Required |
|
||||
|
||||
### rules.matches.headers
|
||||
|
||||
|
|
Loading…
Reference in New Issue