---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: dgx-chargeback
spec:
  schedule: "@daily"
  concurrencyPolicy: Allow
  failedJobsHistoryLimit: 3
  startingDeadlineSeconds: 300
  successfulJobsHistoryLimit: 3
  jobTemplate:
    spec:
      activeDeadlineSeconds: 3600
      backoffLimit: 3
      parallelism: 1
      template:
        spec:
          containers:
          - name: dgx-chargeback
            image: docker.io/kalenpeterson/dgx-chargeback:latest
            imagePullPolicy: Always
            envFrom:
            - configMapRef:
                name: env-config-dgx-chargeback
            - secretRef:
                name: env-secret-dgx-chargeback
          restartPolicy: Never
          nodeSelector:
             node-role.kubernetes.io/master: ""
