-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdaas-k8s.yml
754 lines (753 loc) · 22.8 KB
/
daas-k8s.yml
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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: api
name: api
spec:
ports:
- name: "8001"
port: 8001
targetPort: 8001
- name: "4567"
port: 4567
targetPort: 4567
- name: "4667"
port: 4667
targetPort: 4667
selector:
io.kompose.service: api
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: db
name: db
spec:
ports:
- name: "5432"
port: 5432
targetPort: 5432
selector:
io.kompose.service: db
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: nginx
name: nginx
spec:
ports:
- name: "80"
port: 80
targetPort: 80
- name: "443"
port: 443
targetPort: 443
externalIPs:
- 164.90.139.137
selector:
io.kompose.service: nginx
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-statistics
name: redis-statistics
spec:
ports:
- name: "6380"
port: 6380
targetPort: 6380
selector:
io.kompose.service: redis-statistics
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-task-queue
name: redis-task-queue
spec:
ports:
- name: "6379"
port: 6379
targetPort: 6379
selector:
io.kompose.service: redis-task-queue
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-filer
name: seaweedfs-filer
spec:
ports:
- name: "8888"
port: 8888
targetPort: 8888
- name: "18888"
port: 18888
targetPort: 18888
selector:
io.kompose.service: seaweedfs-filer
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-master
name: seaweedfs-master
spec:
ports:
- name: "9333"
port: 9333
targetPort: 9333
- name: "19333"
port: 19333
targetPort: 19333
selector:
io.kompose.service: seaweedfs-master
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-volume
name: seaweedfs-volume
spec:
ports:
- name: "8080"
port: 8080
targetPort: 8080
- name: "18080"
port: 18080
targetPort: 18080
selector:
io.kompose.service: seaweedfs-volume
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: api
name: api
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: api
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: api
spec:
containers:
- args:
- bash
- -c
- python3 /daas/manage.py collectstatic --no-input && cd /daas/ && gunicorn daas.wsgi --timeout 300 -b 0.0.0.0:8001
name: api
image: metalion25/daas_api
ports:
- containerPort: 8001
- containerPort: 4567
- containerPort: 4667
resources: {}
volumeMounts:
- mountPath: /daas
name: api-hostpath0
- mountPath: /daas/daas_app/tests/resources/
name: api-hostpath1
- mountPath: /static
name: api-hostpath2
- mountPath: /home/root/conf
name: api-hostpath3
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/daas
name: api-hostpath0
- hostPath:
path: /root/daas/daas
name: api-hostpath1
- hostPath:
path: /root/daas/daas/static
name: api-hostpath2
- hostPath:
path: /root/daas/daas/gunicorn_config
name: api-hostpath3
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: db
name: db
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: db
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: db
spec:
containers:
- env:
- name: POSTGRES_DB
value: daas
- name: POSTGRES_PASSWORD
value: iamaweakpassword
- name: POSTGRES_USER
value: daas
image: postgres:10.5
name: db
ports:
- containerPort: 5432
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: db-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/postgres-data
name: db-hostpath0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: flash-worker
name: flash-worker
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: flash-worker
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: flash-worker
spec:
containers:
- args:
- bash
- -c
- "rq worker --path / --url redis://redis-task-queue:6379/0 flash_queue --name agent_$(hostname -I | cut -d' ' -f1)_$(echo $RANDOM)__$(date +%s)"
image: metalion25/daas_flash_worker
name: flash-worker
resources: {}
volumeMounts:
- mountPath: /daas
name: flash-worker-hostpath0
- mountPath: /tmpfs
name: flash-worker-tmpfs0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/decompilers
name: flash-worker-hostpath0
- emptyDir:
medium: Memory
name: flash-worker-tmpfs0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: java-worker
name: java-worker
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: java-worker
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: java-worker
spec:
containers:
- args:
- bash
- -c
- "rq worker --path / --url redis://redis-task-queue:6379/0 java_queue --name agent_$(hostname -I | cut -d' ' -f1)_$(echo $RANDOM)__$(date +%s)"
image: metalion25/daas_java_worker
name: java-worker
resources: {}
volumeMounts:
- mountPath: /daas
name: java-worker-hostpath0
- mountPath: /tmpfs
name: java-worker-tmpfs0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/decompilers
name: java-worker-hostpath0
- emptyDir:
medium: Memory
name: java-worker-tmpfs0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: meta-extractor-worker
name: meta-extractor-worker
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: meta-extractor-worker
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: meta-extractor-worker
spec:
containers:
- args:
- bash
- -c
- "rq worker --path / --url redis://redis-task-queue:6379/0 unknown unknown_requeued --name agent_$(hostname -I | cut -d' ' -f1)_$(echo $RANDOM)__$(date +%s)"
image: metalion25/daas_meta_extractor_worker
name: meta-extractor-worker
resources: {}
volumeMounts:
- mountPath: /daas
name: meta-extractor-worker-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/meta_extractor
name: meta-extractor-worker-hostpath0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: nginx
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: nginx
spec:
containers:
- image: nginx:1.15.8
name: nginx
ports:
- containerPort: 80
- containerPort: 443
resources: {}
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-hostpath0
- mountPath: /etc/ssl/certs
name: nginx-hostpath1
- mountPath: /etc/ssl/private
name: nginx-hostpath2
- mountPath: /etc/nginx/snippets
name: nginx-hostpath3
- mountPath: /static_files
name: nginx-hostpath4
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/nginx_config
name: nginx-hostpath0
- hostPath:
path: /root/daas/daas/certificates/etc_ssl_certs
name: nginx-hostpath1
- hostPath:
path: /root/daas/daas/certificates/etc_ssl_private
name: nginx-hostpath2
- hostPath:
path: /root/daas/daas/nginx_snippets
name: nginx-hostpath3
- hostPath:
path: /root/daas/daas/daas/static
name: nginx-hostpath4
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: pe-worker
name: pe-worker
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: pe-worker
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: pe-worker
spec:
containers:
- args:
- bash
- -c
- "rq worker --path / --url redis://redis-task-queue:6379/0 pe_queue --name agent_$(hostname -I | cut -d' ' -f1)_$(echo $RANDOM)__$(date +%s)"
image: metalion25/daas_pe_worker
name: pe-worker
resources: {}
volumeMounts:
- mountPath: /daas
name: pe-worker-hostpath0
- mountPath: /just_decompile/
name: pe-worker-hostpath1
- mountPath: /tmpfs
name: pe-worker-tmpfs0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/decompilers
name: pe-worker-hostpath0
- hostPath:
path: /root/daas/daas/utils/just_decompile
name: pe-worker-hostpath1
- emptyDir:
medium: Memory
name: pe-worker-tmpfs0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-statistics
name: redis-statistics
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: redis-statistics
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-statistics
spec:
containers:
- args:
- redis-server
- --port
- "6380"
- --appendonly
- "yes"
image: redis:5.0.6
name: redis-statistics
ports:
- containerPort: 6380
resources: {}
volumeMounts:
- mountPath: /data
name: redis-statistics-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/statistics-data
name: redis-statistics-hostpath0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-task-queue
name: redis-task-queue
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: redis-task-queue
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: redis-task-queue
spec:
containers:
- image: redis:5.0.6
name: redis-task-queue
ports:
- containerPort: 6379
resources: {}
restartPolicy: Always
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-filer
name: seaweedfs-filer
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: seaweedfs-filer
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-filer
spec:
containers:
- args:
- ./seaweed
- filer
- -master=seaweedfs-master:9333
- -port=8888
image: metalion25/daas_seaweedfs_filer
name: seaweedfs-filer
ports:
- containerPort: 8888
- containerPort: 18888
resources: {}
volumeMounts:
- mountPath: /etc/seaweedfs/
name: seaweedfs-filer-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/daas/seaweedfs
name: seaweedfs-filer-hostpath0
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-master
name: seaweedfs-master
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: seaweedfs-master
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-master
spec:
containers:
- args:
- ./seaweed
- master
image: metalion25/daas_seaweedfs_master
name: seaweedfs-master
ports:
- containerPort: 9333
- containerPort: 19333
resources: {}
restartPolicy: Always
status: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-volume
name: seaweedfs-volume
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: seaweedfs-volume
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-k8s.yml --volumes hostPath -o daas-k8s.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: seaweedfs-volume
spec:
containers:
- args:
- ./seaweed
- volume
- -dir=/volume_data
- -max=1
- -mserver=seaweedfs-master:9333
- -port=8080
image: metalion25/daas_seaweedfs_volume
name: seaweedfs-volume
ports:
- containerPort: 8080
- containerPort: 18080
resources: {}
volumeMounts:
- mountPath: /data
name: seaweedfs-volume-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /root/daas/seaweedfs-data
name: seaweedfs-volume-hostpath0
status: {}
kind: List
metadata: {}