Skip to content

Commit 94cabf1

Browse files
committed
adding tests and a release note
Signed-off-by: asif.hasnain@sap.com <asif.hasnain@sap.com>
1 parent 50c19cf commit 94cabf1

6 files changed

Lines changed: 717 additions & 0 deletions
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
gateways:
2+
- apiVersion: gateway.networking.k8s.io/v1
3+
kind: Gateway
4+
metadata:
5+
namespace: envoy-gateway
6+
name: gateway-tls
7+
spec:
8+
gatewayClassName: envoy-gateway-class
9+
listeners:
10+
- name: tls-passthrough
11+
protocol: TLS
12+
port: 8443
13+
tls:
14+
mode: Passthrough
15+
allowedRoutes:
16+
namespaces:
17+
from: All
18+
tlsRoutes:
19+
- apiVersion: gateway.networking.k8s.io/v1alpha2
20+
kind: TLSRoute
21+
metadata:
22+
namespace: default
23+
name: tlsroute-a
24+
spec:
25+
parentRefs:
26+
- namespace: envoy-gateway
27+
name: gateway-tls
28+
sectionName: tls-passthrough
29+
hostnames:
30+
- "a.example.com"
31+
rules:
32+
- backendRefs:
33+
- name: service-1
34+
port: 8443
35+
- apiVersion: gateway.networking.k8s.io/v1alpha2
36+
kind: TLSRoute
37+
metadata:
38+
namespace: default
39+
name: tlsroute-b
40+
spec:
41+
parentRefs:
42+
- namespace: envoy-gateway
43+
name: gateway-tls
44+
sectionName: tls-passthrough
45+
hostnames:
46+
- "b.example.com"
47+
rules:
48+
- backendRefs:
49+
- name: service-2
50+
port: 8443
51+
securityPolicies:
52+
- apiVersion: gateway.envoyproxy.io/v1alpha1
53+
kind: SecurityPolicy
54+
metadata:
55+
namespace: default
56+
name: sp-tlsroute-a
57+
spec:
58+
targetRef:
59+
group: gateway.networking.k8s.io
60+
kind: TLSRoute
61+
name: tlsroute-a
62+
authorization:
63+
defaultAction: Deny
64+
rules:
65+
- action: Allow
66+
name: allow-route-a
67+
principal:
68+
clientCIDRs:
69+
- 192.168.0.0/16
70+
- apiVersion: gateway.envoyproxy.io/v1alpha1
71+
kind: SecurityPolicy
72+
metadata:
73+
namespace: default
74+
name: sp-tlsroute-b
75+
spec:
76+
targetRef:
77+
group: gateway.networking.k8s.io
78+
kind: TLSRoute
79+
name: tlsroute-b
80+
authorization:
81+
defaultAction: Deny
82+
rules:
83+
- action: Allow
84+
name: allow-route-b
85+
principal:
86+
clientCIDRs:
87+
- 10.0.0.0/8

0 commit comments

Comments
 (0)