-
Notifications
You must be signed in to change notification settings - Fork 24
/
all-gke.yaml
224 lines (224 loc) · 8.43 KB
/
all-gke.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
---
apiVersion: v1
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVLekNDQXhPZ0F3SUJBZ0lCRFRBTkJna3Foa2lHOXcwQkFRc0ZBREJNTVFzd0NRWURWUVFHRXdKVlV6RVAKTUEwR0ExVUVDZ3dHUjI5dloyeGxNUk13RVFZRFZRUUxEQXBGYm5SbGNuQnlhWE5sTVJjd0ZRWURWUVFEREE1VAphVzVuYkdVZ1VtOXZkQ0JEUVRBZUZ3MHlOREEwTURNeE16UXdNRFJhRncwek5EQTBNRE14TXpRd01EUmFNRTR4CkN6QUpCZ05WQkFZVEFsVlRNUTh3RFFZRFZRUUtEQVpIYjI5bmJHVXhFekFSQmdOVkJBc01Da1Z1ZEdWeWNISnAKYzJVeEdUQVhCZ05WQkFNTUVHbHpkR2x2TG1SdmJXRnBiaTVqYjIwd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQQpBNElCRHdBd2dnRUtBb0lCQVFEU0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GNNclFuWndrT0QxbTErRE1YbGZ6RnlCQTRtNS9zVWUKd3dhN3A5ZVNzd1F6aW1lT2N5bmg1NzdhOU9Iekd5V3NmelJBK2o3c3NPMHk1eTl6OXFlcjNCWnBBb0dBUkRZLwpCMEZDSnNHRmhKbnFoSkozQ2JpeEZBdDFPcWhWeEJNQ0VxU1UrdjdzQUJsWk9Nem1HeW5wYTk1d2FwM1EvcVh1CjBIMWQ5bzFSZGxvZTNlUEM1OCtiaVlOZ2FnK3F3T1RZdDFsbXNhamZuZEJXcXpBMGcwMSt2eGtFZnh1QVJkZmMKc08yOGg0S0JoYm1vNVRUWWFLMkN1am91blpPdU42WHJMVVl2Y21NQ2dZRUFqSzBENkVCU3NDbkNjdXdFeWdtZgpKM0JaN1VqRHhXeHpUVWFLVTl1T0lsUklJUkpvcCsxdnFWYUU0dWh2MVBjd1J0V1YvRXByeXNLVHdHbUt0a1l4CmpaRkJDRkloTzl2M1lncTNMcW1hUEE1Tk5BT0ZSZ2tJUCtCNEs4NkNwR1ZIcE1SYVBaWFBKRFFELzJidjRaSm4KMXNMVUtVSEZZM0VoRUZXd0UwUEZLK2c9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
kind: Secret
metadata:
name: istio-ingress-certs
#namespace: istio-system
type: Opaque
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: gateway
annotations:
#kubernetes.io/ingress.class: "istio"
kubernetes.io/ingress.allowHTTP: "false"
spec:
tls:
- secretName: istio-ingress-certs
rules:
- http:
paths:
#- path: /.*
- path: /*
backend:
serviceName: myapp
servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: myapp
labels:
app: myapp
spec:
type: NodePort
ports:
- port: 8080
name: http
selector:
app: myapp
---
kind: Secret
apiVersion: v1
metadata:
name: api-keys
type: Opaque
data:
google-key: "QUl6YVN5RGdSWTNEejRCenFwekxXRG1JU1JhSm80ejlDLXBvNXpnCg=="
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-v1
spec:
selector:
matchLabels:
app: myapp
version: v1
replicas: 1
template:
metadata:
labels:
app: myapp
version: v1
spec:
containers:
- name: myapp-container
image: salrashid123/istioinit:1
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: GOOGLE_API_KEY
valueFrom:
secretKeyRef:
name: api-keys
key: google-key
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-v2
spec:
selector:
matchLabels:
app: myapp
version: v2
replicas: 1
template:
metadata:
labels:
app: myapp
version: v2
spec:
containers:
- name: myapp-container
image: salrashid123/istioinit:2
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: GOOGLE_API_KEY
valueFrom:
secretKeyRef:
name: api-keys
key: google-key
---
apiVersion: v1
kind: Service
metadata:
name: be
labels:
app: be
spec:
ports:
- name: http
port: 8080
selector:
app: be
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: be-v1
labels:
type: be
version: v1
spec:
selector:
matchLabels:
app: be
version: v1
replicas: 1
template:
metadata:
labels:
app: be
version: v1
spec:
containers:
- name: be-container
image: salrashid123/istioinit:1
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: be-v2
labels:
type: be
version: v2
spec:
selector:
matchLabels:
app: be
version: v2
replicas: 1
template:
metadata:
labels:
app: be
version: v2
spec:
containers:
- name: be-container
image: salrashid123/istioinit:2
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name