apiVersion: apps/v1
kind: Deployment
metadata:
  name: market-app
  namespace: ai-agents
spec:
  replicas: 1
  selector:
    matchLabels:
      app: market-app
  template:
    metadata:
      labels:
        app: market-app
    spec:
      containers:
      - name: market
        image: 192.168.8.250:5000/market:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 3010
        env:
        - name: NODE_ENV
          value: "production"
        livenessProbe:
          httpGet:
            path: /health
            port: 3010
          initialDelaySeconds: 15
          periodSeconds: 20
        readinessProbe:
          httpGet:
            path: /health
            port: 3010
          initialDelaySeconds: 5
          periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
  name: market-app
  namespace: ai-agents
spec:
  selector:
    app: market-app
  ports:
  - port: 80
    targetPort: 3010
