-
Notifications
You must be signed in to change notification settings - Fork 0
/
08-istio-ingress-hostname.yaml
111 lines (101 loc) · 1.64 KB
/
08-istio-ingress-hostname.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: red-vs
namespace: red
spec:
gateways:
- red-gw
hosts:
- red.ko2.com
http:
- route:
- destination:
host: red-svc-ci.red.svc.cluster.local
port:
number: 80
weight: 100
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: red-gw
namespace: red
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- red.ko2.com
port:
name: http
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: green-vs
namespace: green
spec:
gateways:
- green-gw
hosts:
- green.ko2.com
http:
- route:
- destination:
host: green-svc-ci.green.svc.cluster.local
port:
number: 80
weight: 100
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: green-gw
namespace: green
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- green.ko2.com
port:
name: http
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: blue-vs
namespace: blue
spec:
gateways:
- blue-gw
hosts:
- blue.ko2.com
http:
- route:
- destination:
host: blue-svc-ci.blue.svc.cluster.local
port:
number: 80
weight: 100
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: blue-gw
namespace: blue
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- blue.ko2.com
port:
name: http
number: 80
protocol: HTTP