forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
expose-istiod-rev.yaml.tmpl
56 lines (55 loc) · 1.18 KB
/
expose-istiod-rev.yaml.tmpl
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
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: istiod-gateway
spec:
selector:
istio: eastwestgateway
servers:
- port:
name: tls-istiod
number: 15012
protocol: tls
tls:
mode: PASSTHROUGH
hosts:
- "*"
- port:
name: tls-istiodwebhook
number: 15017
protocol: tls
tls:
mode: PASSTHROUGH
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: istiod-vs-{{.Revision}}
spec:
hosts:
- "*"
gateways:
- istiod-gateway
tls:
- match:
- port: 15012
sniHosts:
- "istiod-{{.Revision}}.istio-system.svc"
- "istiod-{{.Revision}}.istio-system.svc.cluster.local"
route:
- destination:
host: istiod-{{.Revision}}.istio-system.svc.cluster.local
port:
number: 15012
- match:
- port: 15017
sniHosts:
- "istiod-{{.Revision}}.istio-system.svc"
- "istiod-{{.Revision}}.istio-system.svc.cluster.local"
route:
- destination:
host: istiod-{{.Revision}}.istio-system.svc.cluster.local
port:
number: 443