apiVersion: apps/v1
kind: Deployment
metadata:
  name: bittrader-candle-feeder
  labels:
    app: candle-feeder
    tier: backend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: candle-feeder
  template:
    metadata:
      labels:
        app: candle-feeder
        tier: backend
    spec:
      containers:
        - name: candle-feeder
          image: ghcr.io/ken-tunc/bittrader/bittrader-candle-feeder
          imagePullPolicy: Always
          env:
            - name: SPRING_PROFILES_ACTIVE
              value: prod
            - name: TZ
              valueFrom:
                configMapKeyRef:
                  name: bittrader-backend-config
                  key: time_zone
          resources:
            requests:
              memory: "512Mi"
              cpu: "250m"
            limits:
              memory: "1Gi"
              cpu: "500m"
