---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: benthos-delete-table-entry-deployment
  labels:
    app: benthos
spec:
  replicas: 1
  selector:
    matchLabels:
      app: benthos
  template:
    metadata:
      labels:
        app: benthos
    spec:
      containers:
      - name: benthos
        image: jeffail/benthos
        args: ["-c", "/config/benthos.yaml"]
        envFrom:
          - secretRef:
             name: db-credentials
          - secretRef:
             name: benthos-credentials
        ports:
        - containerPort: 4195
        volumeMounts:
        - name: config
          mountPath: "/config"
          readOnly: true
      volumes:
        - name: config
          configMap:
            name: benthos-delete-table-entry
