# Staging environment overrides
# These values override the base deployment for staging

apiVersion: apps/v1
kind: Deployment
metadata:
  name: veza-backend-api
  namespace: veza-staging
spec:
  replicas: 2  # 2 replicas for staging
  template:
    spec:
      containers:
      - name: backend-api
        env:
        - name: APP_ENV
          value: "staging"
        - name: LOG_LEVEL
          value: "INFO"
        resources:
          requests:
            cpu: "250m"
            memory: "256Mi"
          limits:
            cpu: "1000m"
            memory: "1Gi"

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: veza-frontend
  namespace: veza-staging
spec:
  replicas: 2  # 2 replicas for staging
  template:
    spec:
      containers:
      - name: frontend
        env:
        - name: VITE_APP_ENV
          value: "staging"
        - name: VITE_API_URL
          value: "https://api-staging.veza.com"
        resources:
          requests:
            cpu: "100m"
            memory: "128Mi"
          limits:
            cpu: "500m"
            memory: "256Mi"

