apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: backup-obljubadeladolg
spec:
  schedule: 15 2 * * *
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: backup-obljubadeladolg
            image: backup
            args:
            - /bin/bash
            - /do_backup.sh
            envFrom:
              - secretRef:
                  name: secrets-backup
            env:
              - name: DATABASE_NAME
                value: obljubadeladolg
              - name: S3_BACKUP_PATH
                value: s3://djnd-backups
          restartPolicy: OnFailure
