The Elasticsearch chart includes a CronJob for Elastic Curator to automate index management tasks such as taking snapshots, deleting old indices, restoring indices, or reindexing.
Important Configuration Rules:
- Configuration is handled via the
conf.curator section in values.yaml. - Do not use "None" for unused fields. If a field is not needed, leave it blank. Entering the string
"None" will cause Curator to interpret it as a Python NoneType, resulting in an exception.
Curator configuration is split into two main parts: client (connection settings) and action_file (the actual lifecycle tasks).
conf:
curator:
client:
hosts: ["elasticsearch-logging"]
port: 9200
use_ssl: False
# Leave unused fields blank, not "None"
certificate:
logging:
loglevel: INFO
action_file:
actions:
1:
action: delete_indices
description: "Clean up ES by deleting old indices"
options:
disable_action: True # Actions are disabled by default
filters:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 30