-
Notifications
You must be signed in to change notification settings - Fork 1
/
gke-istio-ingress.yaml
97 lines (97 loc) · 1.86 KB
/
gke-istio-ingress.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
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: backend-config
namespace: istio-system
spec:
timeoutSec: 86400
connectionDraining:
drainingTimeoutSec: 300
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: health
namespace: istio-system
spec:
gateways:
- istio-ingressgateway
hosts:
- "*"
http:
- match:
- headers:
user-agent:
prefix: GoogleHC
method:
exact: GET
uri:
exact: /
rewrite:
authority: istio-ingressgateway.istio-system.svc.cluster.local:15021
uri: /healthz/ready
route:
- destination:
host: istio-ingressgateway.istio-system.svc.cluster.local
port:
number: 15021
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: istio-ingress
namespace: istio-system
spec:
backend:
serviceName: istio-ingressgateway
servicePort: 80
---
apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"ports": {"80":"backend-config"}}'
name: istio-ingressgateway
namespace: istio-system
spec:
externalTrafficPolicy: Cluster
ports:
- name: status-port
port: 15021
protocol: TCP
targetPort: 15021
- name: http2
port: 80
protocol: TCP
targetPort: 8080
- name: https
port: 443
protocol: TCP
targetPort: 8443
- name: tls
port: 15443
protocol: TCP
targetPort: 15443
selector:
app: istio-ingressgateway
istio: ingressgateway
sessionAffinity: None
type: NodePort
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: istio-ingressgateway
namespace: istio-system
spec:
selector:
app: istio-ingressgateway
istio: ingressgateway
servers:
- hosts:
- '*'
port:
name: http
number: 80
protocol: HTTP