HTTPRouteMatch

Conditions for matching an incoming HTTP request. Multiple matches within a rule are OR'd; conditions within a match are AND'd.

Container OrchestrationKubernetesLoad BalancingNetworkingService Discovery

Properties

Name Type Description
path object Path match conditions.
headers array Header match conditions. All conditions must match.
queryParams array Query parameter match conditions.
method string HTTP method to match.
View JSON Schema on GitHub

JSON Schema

kubernetes-services-httproutematch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/HTTPRouteMatch",
  "title": "HTTPRouteMatch",
  "type": "object",
  "description": "Conditions for matching an incoming HTTP request. Multiple matches within a rule are OR'd; conditions within a match are AND'd.",
  "properties": {
    "path": {
      "type": "object",
      "description": "Path match conditions.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Exact",
            "PathPrefix",
            "RegularExpression"
          ],
          "description": "Path match type."
        },
        "value": {
          "type": "string",
          "description": "Path value to match."
        }
      }
    },
    "headers": {
      "type": "array",
      "description": "Header match conditions. All conditions must match.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Header name to match."
          },
          "value": {
            "type": "string",
            "description": "Header value to match."
          },
          "type": {
            "type": "string",
            "enum": [
              "Exact",
              "RegularExpression"
            ]
          }
        }
      }
    },
    "queryParams": {
      "type": "array",
      "description": "Query parameter match conditions.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Exact",
              "RegularExpression"
            ]
          }
        }
      }
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD",
        "OPTIONS",
        "CONNECT",
        "TRACE"
      ],
      "description": "HTTP method to match."
    }
  }
}