...
1apiVersion: gateway.networking.k8s.io/v1alpha2
2kind: TLSRoute
3metadata:
4 name: gateway-conformance-infra-test
5 namespace: gateway-conformance-infra
6spec:
7 parentRefs:
8 - name: gateway-tlsroute
9 namespace: gateway-conformance-infra
10 hostnames:
11 - abc.example.com
12 rules:
13 - backendRefs:
14 - name: tls-backend
15 port: 443
16---
17apiVersion: gateway.networking.k8s.io/v1beta1
18kind: Gateway
19metadata:
20 name: gateway-tlsroute
21 namespace: gateway-conformance-infra
22spec:
23 gatewayClassName: "{GATEWAY_CLASS_NAME}"
24 listeners:
25 - name: https
26 port: 443
27 protocol: TLS
28 hostname: "*.example.com"
29 allowedRoutes:
30 namespaces:
31 from: Same
32 kinds:
33 - kind: TLSRoute
34 tls:
35 mode: Passthrough
View as plain text