Mercurial > code > home > repos > sco-bot
annotate k8s/deploy.yaml @ 13:403eff4a16c8
fix up indexer flow and fastapi server
author | drewp@bigasterisk.com |
---|---|
date | Thu, 11 Jul 2024 21:32:24 -0700 |
parents | 6622bacb0b84 |
children | 6ed25bcaaf1f |
rev | line source |
---|---|
7 | 1 apiVersion: apps/v1 |
2 kind: Deployment | |
3 metadata: | |
4 name: sco-bot | |
5 spec: | |
6 replicas: 1 | |
7 selector: | |
8 matchLabels: | |
9 app: sco-bot | |
10 template: | |
11 metadata: | |
12 labels: | |
13 app: sco-bot | |
14 spec: | |
8 | 15 volumes: |
16 - name: sco-bot-data | |
17 persistentVolumeClaim: | |
18 claimName: sco-bot-data | |
7 | 19 containers: |
20 - name: vite | |
21 image: reg:5000/sco_bot_web | |
22 workingDir: /opt | |
23 command: | |
24 - pnpm | |
25 - exec | |
26 - vite | |
27 ports: | |
28 - containerPort: 8002 | |
11 | 29 - name: server |
30 image: reg:5000/sco_bot_server | |
7 | 31 workingDir: /opt |
32 command: | |
33 - pdm | |
34 - run | |
35 - fastapi | |
36 - dev | |
37 - --host | |
38 - "0.0.0.0" | |
39 - --port | |
40 - "8001" | |
13
403eff4a16c8
fix up indexer flow and fastapi server
drewp@bigasterisk.com
parents:
11
diff
changeset
|
41 - scobot |
7 | 42 ports: |
8 | 43 - containerPort: 8001 |
44 volumeMounts: | |
45 - name: sco-bot-data | |
46 mountPath: /opt/data | |
47 affinity: | |
48 nodeAffinity: | |
49 requiredDuringSchedulingIgnoredDuringExecution: | |
50 nodeSelectorTerms: | |
51 - matchExpressions: | |
52 - key: "kubernetes.io/hostname" | |
53 operator: In | |
54 values: ["ditto", "dash"] # need /my/serv |