apiVersion: apps/v1
kind: Deployment
metadata:
  name: cerk-printer-mqtt-deployment
  labels:
    app: cerk-printer-mqtt
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cerk-printer-mqtt
  template:
    metadata:
      labels:
        app: cerk-printer-mqtt
    spec:
      containers:
        - name: cerk-printer-mqtt
          image: cloudeventsrouter/cerk:common-0.0.14
          env:
           - name: RUST_LOG
             value: debug
           - name: VALIDATOR_AMOUNT
             value: '100000'
           - name: CONFIG_PATH
             value: '/config.json'
          livenessProbe:
            httpGet:
              path: /
              port: 3000
            initialDelaySeconds: 2
            periodSeconds: 10
          readinessProbe:
            httpGet:
              path: /
              port: 3000
            initialDelaySeconds: 2
            periodSeconds: 10
          volumeMounts:
            - name: cerk-configs
              mountPath: /init.json
              subPath: init.json
            - name: cerk-configs
              mountPath: /config.json
              subPath: config.json
      volumes:
        - name: cerk-configs
          configMap:
              name: cerk-printer-mqtt-configs
      terminationGracePeriodSeconds: 3
