apiVersion: apps/v1
kind: Deployment
metadata:
  name: decoder-krm-interface-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: decoder-krm-interface
  template:
    metadata:
      labels:
        app: decoder-krm-interface
    spec:
      containers:
      - name: decoder-krm-interface
        image: gcr.io/ucdlib-pubreg/casita-decoder-krm-interface:main
        imagePullPolicy: Always
        env:
        - name: KRM_ENV
          value: "gce-prod"
        - name: DECODER_KAFKA_HOST
          value: "kafka-service"
        - name: KAFKA_HOST
          value: "kafka-service"
        - name: LOG_LEVEL
          value: "info"
        resources:
          limits:
            memory: "2Gi"
            cpu: "500m"
          requests:
            memory: "128Mi"
            cpu: "100m"
        volumeMounts:
        - mountPath: /storage/nfs
          name: nfspsc
        - mountPath: /etc/google
          name: service-account
      volumes:
      - name: nfspsc
        persistentVolumeClaim:
          claimName: nfs-persistent-storage-claim
          readOnly: false
      - name: service-account
        secret:
          secretName: service-account
      nodeSelector:
        intendedfor: decoders
