comparison k8s/deploy.yaml @ 7:53ae53f7d1b3

add k8s config
author drewp@bigasterisk.com
date Sat, 06 Jul 2024 16:45:19 -0700
parents
children f23b21bd0fce
comparison
equal deleted inserted replaced
6:a4659594f2e5 7:53ae53f7d1b3
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:
15 containers:
16 - name: vite
17 image: reg:5000/sco_bot_web
18 workingDir: /opt
19 command:
20 - pnpm
21 - exec
22 - vite
23 ports:
24 - containerPort: 8002
25 - name: search
26 image: reg:5000/sco_bot_search
27 workingDir: /opt
28 command:
29 - pdm
30 - run
31 - fastapi
32 - dev
33 - --host
34 - "0.0.0.0"
35 - --port
36 - "8001"
37 - search/query.py
38 ports:
39 - containerPort: 8001