---
# Production backend patches
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: ai-backend
spec:
  replicas: 2
  template:
    spec:
      runtimeClassName: gvisor
      containers:
      - name: ai-backend
        image: dexorder/ai-backend:latest
        imagePullPolicy: Always
        env:
        - name: CONFIG
          value: "prod"
        resources:
          requests:
            memory: "2Gi"
            cpu: "1000m"
          limits:
            memory: "4Gi"
            cpu: "2000m"
---
# Production web patches
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ai-web
spec:
  replicas: 2
  template:
    spec:
      runtimeClassName: gvisor
      containers:
      - name: ai-web
        image: dexorder/ai-web:latest
        imagePullPolicy: Always
        env:
        - name: VITE_BASE_PATH
          value: "/cryptochimp/"
        - name: VITE_WS_URL
          value: "wss://dexorder.ai/ws"
        resources:
          requests:
            memory: "512Mi"
            cpu: "250m"
          limits:
            memory: "1Gi"
            cpu: "500m"
