Mercurial > code > home > repos > sco-bot
diff k8s/deploy.yaml @ 7:53ae53f7d1b3
add k8s config
author | drewp@bigasterisk.com |
---|---|
date | Sat, 06 Jul 2024 16:45:19 -0700 |
parents | |
children | f23b21bd0fce |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/k8s/deploy.yaml Sat Jul 06 16:45:19 2024 -0700 @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sco-bot +spec: + replicas: 1 + selector: + matchLabels: + app: sco-bot + template: + metadata: + labels: + app: sco-bot + spec: + containers: + - name: vite + image: reg:5000/sco_bot_web + workingDir: /opt + command: + - pnpm + - exec + - vite + ports: + - containerPort: 8002 + - name: search + image: reg:5000/sco_bot_search + workingDir: /opt + command: + - pdm + - run + - fastapi + - dev + - --host + - "0.0.0.0" + - --port + - "8001" + - search/query.py + ports: + - containerPort: 8001 \ No newline at end of file