...
1apiVersion: gateway.networking.k8s.io/v1
2kind: Gateway
3metadata:
4 name: tlsroutes-only
5 namespace: gateway-conformance-infra
6spec:
7 gatewayClassName: "{GATEWAY_CLASS_NAME}"
8 listeners:
9 - name: tls
10 port: 443
11 protocol: TLS
12 tls:
13 mode: Passthrough
14 allowedRoutes:
15 namespaces:
16 from: Same
17 kinds:
18 - kind: TLSRoute
19---
20apiVersion: gateway.networking.k8s.io/v1
21kind: HTTPRoute
22metadata:
23 name: disallowed-kind
24 namespace: gateway-conformance-infra
25spec:
26 parentRefs:
27 - name: tlsroutes-only
28 namespace: gateway-conformance-infra
29 rules:
30 - backendRefs:
31 - name: infra-backend-v1
32 port: 8080
View as plain text