# Storer Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: markets
  name: storer
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: storer
  template:
    metadata:
      namespace: markets
      labels:
        app: storer
    spec:
      containers:
      - env:
        - name: KAFKA_BROKERS
          value: kafka-broker.markets:9092
        - name: CASSANDRA_HOSTS
          value: elassandra
        - name: CM_LOG_LEVEL
          value: INFO
        - name: EXCHANGES_CONNECTOR_API_URLS
          value: http://exchanges-connector-cex.markets:8080,http://exchanges-connector-dex.markets:8080
        - name: JAVA_OPTS
          value: -Xms1500m -Xmx1500m
        image: cybernode/cm-storer:latest
        name: storer
        resources:
          requests:
            cpu: "0.5"
            memory: "2Gi"
          limits:
            cpu: "1.5"
            memory: "2Gi"
        imagePullPolicy: Always
      restartPolicy: Always