# services/communication/atlasbot-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: atlasbot namespace: comms labels: app: atlasbot spec: replicas: 1 selector: matchLabels: app: atlasbot template: metadata: labels: app: atlasbot annotations: checksum/atlasbot-configmap: c57538d33dc02db7aaf7b2f4681f50620c2cbcde8ddc1c51ccb5fa693247b00a 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: AUTH_BASE value: http://matrix-authentication-service:8080 - 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