---
# Source: ccsm-helm/templates/curator-cronjob.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: ccsm-curator
  labels:
    app: camunda-cloud-self-managed
    app.kubernetes.io/name: ccsm-helm
    app.kubernetes.io/instance: ccsm-helm-test
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/part-of: camunda-cloud-self-managed
    app.kubernetes.io/version: "1.3.4"
spec:
  schedule: "0 0 * * *"
  successfulJobsHistoryLimit: 1
  failedJobsHistoryLimit: 3
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 120
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - image: bitnami/elasticsearch-curator:5.8.4
              name: curator
              args: ["--config", "/etc/config/config.yml", "/etc/config/action_file.yml"]
              volumeMounts:
                - name: config
                  mountPath: /etc/config
          volumes:
            - name: config
              configMap:
                name: ccsm-curator-config
          restartPolicy: OnFailure