apiVersion: apps/v1
kind: Deployment
metadata:
  name: curio-app
  namespace: curio
spec:
  replicas: 2
  selector:
    matchLabels:
      app: curio-app
  template:
    metadata:
      labels:
        app: curio-app
      annotations:
        redeploy-timestamp: "2026-05-14T19:04:30"
    spec:
      containers:
      - name: curio
        image: 192.168.8.250:5000/curio:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 3000
        env:
        - name: DATABASE_URL
          value: "postgres://postgres:curio_secret@curio-db:5432/curio"
        - name: TEMPORAL_URL
          value: "temporal-frontend.ai-core.svc.cluster.local:7233"
        livenessProbe:
          httpGet:
            path: /
            port: 3000
          initialDelaySeconds: 5
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /
            port: 3000
          initialDelaySeconds: 2
          periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
  name: curio-app
  namespace: curio
spec:
  selector:
    app: curio-app
  ports:
  - port: 80
    targetPort: 3000
