...
1apiVersion: gateway.networking.k8s.io/v1
2kind: Gateway
3metadata:
4 name: gateway-with-two-listeners-and-one-attached-route
5 namespace: gateway-conformance-infra
6spec:
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---
26apiVersion: gateway.networking.k8s.io/v1
27kind: HTTPRoute
28metadata:
29 name: http-route-4
30 namespace: gateway-conformance-infra
31spec:
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
View as plain text