Mercurial > code > home > repos > sco-bot
comparison k8s/deploy.yaml @ 15:6ed25bcaaf1f
add prefect and rebuild flow to k8s
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 Jul 2024 00:30:47 -0700 |
parents | 403eff4a16c8 |
children | 7a87ba2f00d9 |
comparison
equal
deleted
inserted
replaced
14:b9c2b7fedbcd | 15:6ed25bcaaf1f |
---|---|
24 - pnpm | 24 - pnpm |
25 - exec | 25 - exec |
26 - vite | 26 - vite |
27 ports: | 27 ports: |
28 - containerPort: 8002 | 28 - containerPort: 8002 |
29 - name: server | 29 name: web |
30 | |
31 - name: search-server | |
30 image: reg:5000/sco_bot_server | 32 image: reg:5000/sco_bot_server |
33 securityContext: { runAsUser: 1020 } | |
31 workingDir: /opt | 34 workingDir: /opt |
32 command: | 35 command: |
33 - pdm | 36 - pdm |
34 - run | 37 - run |
35 - fastapi | 38 - fastapi |
39 - --port | 42 - --port |
40 - "8001" | 43 - "8001" |
41 - scobot | 44 - scobot |
42 ports: | 45 ports: |
43 - containerPort: 8001 | 46 - containerPort: 8001 |
47 name: server | |
44 volumeMounts: | 48 volumeMounts: |
45 - name: sco-bot-data | 49 - name: sco-bot-data |
46 mountPath: /opt/data | 50 mountPath: /opt/data |
51 | |
52 - name: prefect | |
53 image: reg:5000/sco_bot_server | |
54 securityContext: { runAsUser: 1020 } | |
55 workingDir: /opt | |
56 env: | |
57 - name: PREFECT_API_URL | |
58 value: https://sco-bot-prefect.bigasterisk.com/api | |
59 command: | |
60 - pdm | |
61 - run_prefect_server | |
62 ports: | |
63 - containerPort: 4200 | |
64 name: prefect | |
65 volumeMounts: | |
66 - name: sco-bot-data | |
67 mountPath: /opt/data | |
68 | |
69 - name: build-flow | |
70 image: reg:5000/sco_bot_server | |
71 securityContext: { runAsUser: 1020 } | |
72 workingDir: /opt | |
73 env: | |
74 - name: PREFECT_API_URL | |
75 value: http://localhost:4200/api | |
76 command: | |
77 - pdm | |
78 - run_build_flow | |
79 volumeMounts: | |
80 - name: sco-bot-data | |
81 mountPath: /opt/data | |
82 | |
47 affinity: | 83 affinity: |
48 nodeAffinity: | 84 nodeAffinity: |
49 requiredDuringSchedulingIgnoredDuringExecution: | 85 requiredDuringSchedulingIgnoredDuringExecution: |
50 nodeSelectorTerms: | 86 nodeSelectorTerms: |
51 - matchExpressions: | 87 - matchExpressions: |