apiVersion: batch/v1beta1
kind: CronJob
metadata:
  creationTimestamp: null
  name: crlite-generate
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      name: crlite-generate
    spec:
      template:
        metadata:
          creationTimestamp: null
        spec:
          initContainers:
          - name: init
            image: busybox:latest
            command: ["/bin/chmod", "777", "/persistent"]
            volumeMounts:
            - mountPath: "/persistent"
              name: crlite-crls
          containers:
          - name: crlite-generate
            envFrom:
            - configMapRef:
                name: crlite-config
            image: docker.io/mozilla/crlite:latest
            command: [ "/bin/bash", "-xc", "/app/scripts/crlite-generate.sh" ]
            imagePullPolicy: Always
            resources:
              requests:
                memory: 14Gi
                cpu: 1.0m
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: FallbackToLogsOnError
            volumeMounts:
            - mountPath: "/persistent"
              name: crlite-crls
          volumes:
          - name: crlite-crls
            persistentVolumeClaim:
              claimName: crlite-crls
          dnsPolicy: ClusterFirst
          restartPolicy: Never
          backoffLimit: 0
          schedulerName: default-scheduler
          securityContext: {}
          terminationGracePeriodSeconds: 30
  schedule: 0 */6 * * *
  successfulJobsHistoryLimit: 3
  suspend: false
status: {}
