apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: s3-metrics-reporter-daily
  namespace: metrics-tools
  labels:
    app.kubernetes.io/name: s3-metrics-reporter-daily
spec:
  schedule: "0 0 * * *"
  concurrencyPolicy: Allow
  jobTemplate:
    metadata:
      labels:
        app.kubernetes.io/name: s3-metrics-reporter-daily
    spec:
      template:
        spec:
          dnsPolicy: Default
          restartPolicy: Never
          containers:
          - name: s3-metrics-reporter-daily
            image: "docker-registry.zooxlabs.com/s3_metrics_reporter:1.0.1"
            env:
              - name: LOG_LEVEL
                value: "DEBUG"
            args: ["-v", "--commit"]
            imagePullPolicy: Always
