-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path1.2.3-multi-cluster-multi-gateway.yaml
56 lines (56 loc) · 1.81 KB
/
1.2.3-multi-cluster-multi-gateway.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##################################################
# Test Name: Multi Gateway Using Cluster Selector
# Test Number: 1.2.3
# Test Description:
# - Select multiple ingress gateways
# - Using multiple kubeServiceRefs selector
##################################################
apiVersion: networking.mesh.gloo.solo.io/v1
kind: VirtualMesh
metadata:
name: virtual-mesh
namespace: gloo-mesh
spec:
federation: # Enable automatic federation of all services to all clusters
selectors:
- {}
meshes:
- name: istiod-istio-system-cluster1
namespace: gloo-mesh
- name: istiod-istio-system-cluster2
namespace: gloo-mesh
---
apiVersion: networking.enterprise.mesh.gloo.solo.io/v1beta1
kind: VirtualGateway
metadata:
name: ingress
namespace: gloo-mesh
spec:
ingressGatewaySelectors:
- portName: http2 # match on port name http2
destinationSelectors: # select single specific kubernetes services
- kubeServiceRefs:
services:
- name: istio-ingressgateway # select cluster1 ingress gateway service
namespace: istio-system
clusterName: cluster1
- kubeServiceRefs: # select single specific kubernetes services
services:
- name: istio-ingressgateway # select cluster2 ingress gateway service
namespace: istio-system
clusterName: cluster2
connectionHandlers:
- http:
routeConfig:
- virtualHost:
domains:
- "*" # Use a catch-all domain
routes:
- name: frontend
routeAction:
destinations:
- kubeService:
clusterName: cluster1
name: frontend
namespace: app
port: 8080