forked from temporalio/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemporal-mysql-es.yaml
383 lines (381 loc) · 11.8 KB
/
temporal-mysql-es.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: elasticsearch
name: elasticsearch
spec:
ports:
- name: "9200"
port: 9200
targetPort: 9200
selector:
io.kompose.service: elasticsearch
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: mysql
name: mysql
spec:
ports:
- name: "3306"
port: 3306
targetPort: 3306
selector:
io.kompose.service: mysql
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
kompose.volume.type: configMap
creationTimestamp: null
labels:
io.kompose.service: temporal
name: temporal
spec:
ports:
- name: "7233"
port: 7233
targetPort: 7233
selector:
io.kompose.service: temporal
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: temporal-web
name: temporal-web
spec:
ports:
- name: "8088"
port: 8088
targetPort: 8088
selector:
io.kompose.service: temporal-web
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: elasticsearch
name: elasticsearch
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: elasticsearch
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.network/temporal-network: "true"
io.kompose.service: elasticsearch
spec:
containers:
- env:
- name: ES_JAVA_OPTS
value: -Xms256m -Xmx256m
- name: cluster.routing.allocation.disk.threshold_enabled
value: "true"
- name: cluster.routing.allocation.disk.watermark.flood_stage
value: 128mb
- name: cluster.routing.allocation.disk.watermark.high
value: 256mb
- name: cluster.routing.allocation.disk.watermark.low
value: 512mb
- name: discovery.type
value: single-node
- name: xpack.security.enabled
value: "false"
image: elasticsearch:7.16.2
name: temporal-elasticsearch
ports:
- containerPort: 9200
resources: {}
restartPolicy: Always
enableServiceLinks: false
status: {}
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
creationTimestamp: null
name: temporal-network
spec:
ingress:
- from:
- podSelector:
matchLabels:
io.kompose.network/temporal-network: "true"
podSelector:
matchLabels:
io.kompose.network/temporal-network: "true"
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: mysql
name: mysql
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mysql
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.network/temporal-network: "true"
io.kompose.service: mysql
spec:
containers:
- env:
- name: MYSQL_ROOT_PASSWORD
value: root
image: mysql:8
name: temporal-mysql
ports:
- containerPort: 3306
resources: {}
restartPolicy: Always
enableServiceLinks: false
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
kompose.volume.type: configMap
creationTimestamp: null
labels:
io.kompose.service: temporal
name: temporal
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: temporal
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
kompose.volume.type: configMap
creationTimestamp: null
labels:
io.kompose.network/temporal-network: "true"
io.kompose.service: temporal
spec:
containers:
- env:
- name: DB
value: mysql
- name: DYNAMIC_CONFIG_FILE_PATH
value: config/dynamicconfig/development-sql.yaml
- name: ENABLE_ES
value: "true"
- name: ES_SEEDS
value: elasticsearch
- name: ES_VERSION
value: v7
- name: MYSQL_PWD
value: root
- name: MYSQL_SEEDS
value: mysql
- name: MYSQL_USER
value: root
image: temporalio/auto-setup:1.21.3
name: temporal
ports:
- containerPort: 7233
resources: {}
volumeMounts:
- mountPath: /etc/temporal/config/dynamicconfig
name: temporal-cm0
restartPolicy: Always
volumes:
- configMap:
name: temporal-cm0
name: temporal-cm0
enableServiceLinks: false
status: {}
- apiVersion: v1
data:
README.md: |
Use `docker.yaml` file to override the default dynamic config value (they are specified
when creating the service config).
Each key can have zero or more values and each value can have zero or more
constraints. There are only three types of constraint:
1. `namespace`: `string`
2. `taskQueueName`: `string`
3. `taskType`: `int` (`1`:`Workflow`, `2`:`Activity`)
A value will be selected and returned if all its has exactly the same constraints
as the ones specified in query filters (including the number of constraints).
Please use the following format:
```
testGetBoolPropertyKey:
- value: false
- value: true
constraints:
namespace: "global-samples-namespace"
- value: false
constraints:
namespace: "samples-namespace"
testGetDurationPropertyKey:
- value: "1m"
constraints:
namespace: "samples-namespace"
taskQueueName: "longIdleTimeTaskqueue"
testGetFloat64PropertyKey:
- value: 12.0
constraints:
namespace: "samples-namespace"
testGetMapPropertyKey:
- value:
key1: 1
key2: "value 2"
key3:
- false
- key4: true
key5: 2.0
```
development-cass.yaml: |
system.forceSearchAttributesCacheRefreshOnRead:
- value: true # Dev setup only. Please don't turn this on in production.
constraints: {}
development-sql.yaml: |
limit.maxIDLength:
- value: 255
constraints: {}
system.forceSearchAttributesCacheRefreshOnRead:
- value: true # Dev setup only. Please don't turn this on in production.
constraints: {}
docker.yaml: ""
kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: temporal
name: temporal-cm0
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: temporal-admin-tools
name: temporal-admin-tools
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: temporal-admin-tools
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.network/temporal-network: "true"
io.kompose.service: temporal-admin-tools
spec:
containers:
- env:
- name: TEMPORAL_ADDRESS
value: temporal:7233
- name: TEMPORAL_CLI_ADDRESS
value: temporal:7233
image: temporalio/admin-tools:1.21.3
name: temporal-admin-tools
resources: {}
stdin: true
tty: true
restartPolicy: Always
enableServiceLinks: false
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.service: temporal-web
name: temporal-web
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: temporal-web
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-mysql-es.yml -o k8s/temporal-mysql-es.yaml
kompose.version: 1.26.1 (1b040dd2)
creationTimestamp: null
labels:
io.kompose.network/temporal-network: "true"
io.kompose.service: temporal-web
spec:
containers:
- env:
- name: TEMPORAL_GRPC_ENDPOINT
value: temporal:7233
image: temporalio/web:1.15.0
name: temporal-web
ports:
- containerPort: 8088
resources: {}
restartPolicy: Always
enableServiceLinks: false
status: {}
kind: List
metadata: {}