62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# services/communication/atlasbot-deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: atlasbot
|
|
namespace: communication
|
|
labels:
|
|
app: atlasbot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: atlasbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: atlasbot
|
|
spec:
|
|
nodeSelector:
|
|
hardware: rpi5
|
|
containers:
|
|
- name: atlasbot
|
|
image: python:3.11-slim
|
|
command: ["/bin/sh","-c"]
|
|
args:
|
|
- |
|
|
python /app/bot.py
|
|
env:
|
|
- name: MATRIX_BASE
|
|
value: http://othrys-synapse-matrix-synapse:8008
|
|
- name: BOT_USER
|
|
value: atlasbot
|
|
- name: BOT_PASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: atlasbot-credentials-runtime
|
|
key: bot-password
|
|
- name: CHAT_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: chat-ai-keys-runtime
|
|
key: matrix
|
|
- name: OLLAMA_URL
|
|
value: https://chat.ai.bstein.dev/
|
|
- name: OLLAMA_MODEL
|
|
value: qwen2.5-coder:7b-instruct-q4_0
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- name: code
|
|
mountPath: /app/bot.py
|
|
subPath: bot.py
|
|
volumes:
|
|
- name: code
|
|
configMap:
|
|
name: atlasbot
|