sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/gateway-with-attached-routes-with-port-8080.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1
     2  kind: Gateway
     3  metadata:
     4    name: gateway-with-two-listeners-and-one-attached-route
     5    namespace: gateway-conformance-infra
     6  spec:
     7    gatewayClassName: "{GATEWAY_CLASS_NAME}"
     8    listeners:
     9    - name: http-unattached
    10      port: 8080
    11      protocol: HTTP
    12      allowedRoutes:
    13        kinds:
    14        - kind: HTTPRoute
    15        namespaces:
    16          from: All
    17    - name: http
    18      port: 80
    19      protocol: HTTP
    20      allowedRoutes:
    21        kinds:
    22        - kind: HTTPRoute
    23        namespaces:
    24          from: All
    25  ---
    26  apiVersion: gateway.networking.k8s.io/v1
    27  kind: HTTPRoute
    28  metadata:
    29    name: http-route-4
    30    namespace: gateway-conformance-infra
    31  spec:
    32    parentRefs:
    33    - kind: Gateway
    34      name: gateway-with-two-listeners-and-one-attached-route
    35      namespace: gateway-conformance-infra
    36      sectionName: http
    37    rules:
    38    - backendRefs:
    39      - name: infra-backend-v1
    40        port: 8080