# Source: https://github.com/helm/charts/tree/master/stable/elasticsearch-curator

elasticsearch-curator:
  hooks:
    install: true
    upgrade: true

  cronjob:
    # At 01:00 every day
    schedule: "0 1 * * *"
    annotations: {}
    concurrencyPolicy: ""
    failedJobsHistoryLimit: ""
    successfulJobsHistoryLimit: ""

  dry-run: false

  configMaps:
    # Delete indices older than 7 days
    action_file_yml: |-
      ---
      actions:
        1:
          action: snapshot
          description: "Take a snapshot every day"
          options:
            repository: "zoox-sim-es-snapshots"
            name: <latest-{now/d}>
            timeout_override:
            continue_if_exception: False
            disable_action: False
            ignore_empty_list: True
          filters:
          - filtertype: pattern
            kind: prefix
            value: metrics

  #  Having config_yaml WILL override the other config
    config_yml: |-
      ---
      client:
        hosts:
          - search-sim-metrics-v6-rhfhvb54pmawksutaybix43i6q.us-west-1.es.amazonaws.com
        port: 443
        url_prefix:
        use_ssl: True
        certificate:
        client_cert:
        client_key:
        ssl_no_validate: False
        http_auth:
        timeout: 30
        master_only: False
      logging:
        loglevel: INFO
        logfile:
        logformat: default
        blacklist: ['elasticsearch', 'urllib3']
