...

Text file src/sigs.k8s.io/gateway-api/conformance/tests/httproute-invalid-parentref-not-matching-listener-port.yaml

Documentation: sigs.k8s.io/gateway-api/conformance/tests

     1apiVersion: gateway.networking.k8s.io/v1
     2kind: HTTPRoute
     3metadata:
     4  name: httproute-listener-not-matching-route-port
     5  namespace: gateway-conformance-infra
     6spec:
     7  parentRefs:
     8  - name: same-namespace
     9    namespace: gateway-conformance-infra
    10    # mismatched port here (81 is not an available gateway listener) triggers NoMatchingParent reason
    11    port: 81
    12  rules:
    13  - backendRefs:
    14    - name: infra-backend-v1
    15      kind: Service
    16      port: 8080

View as plain text