# services/bstein-dev-home/chat-ai-gateway-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: chat-ai-gateway namespace: bstein-dev-home spec: replicas: 1 revisionHistoryLimit: 2 selector: matchLabels: app: chat-ai-gateway template: metadata: labels: app: chat-ai-gateway spec: nodeSelector: kubernetes.io/arch: arm64 node-role.kubernetes.io/worker: "true" containers: - name: gateway image: python:3.11-slim command: ["/bin/sh","-c"] args: - python /app/gateway.py env: - name: UPSTREAM_URL value: http://bstein-dev-home-backend/api/chat - name: CHAT_KEY_MATRIX valueFrom: secretKeyRef: name: chat-ai-keys-runtime key: matrix - name: CHAT_KEY_HOMEPAGE valueFrom: secretKeyRef: name: chat-ai-keys-runtime key: homepage ports: - name: http containerPort: 8080 readinessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 2 periodSeconds: 5 livenessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 10 periodSeconds: 10 resources: requests: cpu: 20m memory: 64Mi limits: cpu: 200m memory: 256Mi volumeMounts: - name: code mountPath: /app/gateway.py subPath: gateway.py volumes: - name: code configMap: name: chat-ai-gateway