apiVersion: apps/v1
kind: Deployment
metadata:
  name: provider-mainnet
spec:
  selector:
    matchLabels:
      app: provider-mainnet
  replicas: 1
  template:
    spec:
      containers:
      - name: provider-mainnet
        image: '${IMAGE_URL}'
        resources:
            limits:
              cpu: "0.5"
              memory: "1Gi"
            requests:
              cpu: "0.5"
              memory: "1Gi"
        env:
          - name: PROVIDER_PRIVATE_KEY
            valueFrom:
              secretKeyRef:
                name: provider-mainnet
                key: PROVIDER_PRIVATE_KEY
          - name: NETWORK_URL
            valueFrom:
              secretKeyRef:
                name: provider-mainnet
                key: NETWORK_URL
          - name: AQUARIUS_URL
            value: "https://aquarius.bigdataprotocolmarket.com"
          - name: PROVIDER_ADDRESS
            value: "${PROVIDER_ADDRESS}"
          - name: LOG_LEVEL
            value: "INFO"
        volumeMounts:
          - name: provider-secrets-store-inline
            mountPath: "/mnt/secrets"
            readOnly: true
      volumes:
        - name: provider-secrets-store-inline
          csi:
            driver: secrets-store.csi.k8s.io
            readOnly: true
            volumeAttributes:
              secretProviderClass: provider-deployment-aws-secrets
