apiVersion: v1
kind: ConfigMap
metadata:
  name: elasticsearch-curator-config
  namespace: logging
  labels:
    app: elasticsearch-curator
data:
  action_file.yml:   |-
    ---
    actions:
      1:
        action: delete_indices
        description: "Clean up ES by deleting old indices"
        options:
          timeout_override:
          continue_if_exception: False
          disable_action: False
          ignore_empty_list: True
        filters:
        - filtertype: age
          source: name
          direction: older
          timestring: '%Y.%m.%d'
          unit: days
          unit_count: 7
          field:
          stats_result:
          epoch:
          exclude: False


  config.yml: |
    client:
      hosts:
      - elasticsearch-cluster
      port: 9200
