sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-header-matching.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: HTTPRoute 3 metadata: 4 name: header-matching 5 namespace: gateway-conformance-infra 6 spec: 7 parentRefs: 8 - name: same-namespace 9 rules: 10 # Matches "version: one" 11 - matches: 12 - headers: 13 - name: version 14 value: one 15 backendRefs: 16 - name: infra-backend-v1 17 port: 8080 18 # Matches "version: two" 19 - matches: 20 - headers: 21 - name: version 22 value: two 23 backendRefs: 24 - name: infra-backend-v2 25 port: 8080 26 # Matches "version: two" AND "color: orange" 27 - matches: 28 - headers: 29 - name: version 30 value: two 31 - name: color 32 value: orange 33 backendRefs: 34 - name: infra-backend-v1 35 port: 8080 36 # Matches "color: blue" OR "color: green" 37 - matches: 38 - headers: 39 - name: color 40 value: blue 41 - headers: 42 - name: color 43 value: green 44 backendRefs: 45 - name: infra-backend-v1 46 port: 8080 47 # Matches "color: red" OR "color: yellow" 48 - matches: 49 - headers: 50 - name: color 51 value: red 52 - headers: 53 - name: color 54 value: yellow 55 backendRefs: 56 - name: infra-backend-v2 57 port: 8080