
apiVersion: batch/v1
kind: Job
metadata:
  name: payout-job
spec:
  backoffLimit: 4
  template:
    spec:
      containers:
      - name: payout-calculate
        image: gcr.io/walker-cpl/tp2
        command:
          - bash
          - -c
          - /haskell/payout < /input
        volumeMounts:
        - name: input
          mountPath: /
          readOnly: true
      volumes:
      - name: input
        configMap:
          name: input
      restartPolicy: Never

