diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml index 6a36e6adc..cfcd75472 100644 --- a/elasticsearch/values.yaml +++ b/elasticsearch/values.yaml @@ -345,88 +345,94 @@ conf: # Also remember that all examples have 'disable_action' set to True. If you # want to use this action as a template, be sure to set this to False after # copying it. + # + # NOTE(srwilkers): The list of actions below is kept empty, and should be + # driven purely by overrides. As these items are injected as pure YAML, + # the desired configuration should include all fields as to avoid unwanted + # merges with a set of dummy default values. The supplied values can be + # used as an example actions: - 1: - action: delete_indices - description: >- - "Delete indices older than 7 days" - options: - timeout_override: - continue_if_exception: False - ignore_empty_list: True - disable_action: True - filters: - - filtertype: pattern - kind: prefix - value: logstash- - - filtertype: age - source: name - direction: older - timestring: '%Y.%m.%d' - unit: days - unit_count: 7 - 2: - action: delete_indices - description: >- - "Delete indices by age if available disk space is - less than 80% total disk" - options: - timeout_override: 600 - continue_if_exception: False - ignore_empty_list: True - disable_action: True - filters: - - filtertype: pattern - kind: prefix - value: logstash- - - filtertype: space - source: creation_date - use_age: True - # This space assumes the default PVC size of 5Gi times three data - # replicas. This must be adjusted if changed due to Curator being - # unable to calculate percentages of total disk space - disk_space: 12 - 3: - action: snapshot - description: >- - "Snapshot indices older than one day" - options: - repository: logstash_snapshots - # Leaving this blank results in the default name format - name: - wait_for_completion: True - max_wait: 3600 - wait_interval: 10 - timeout_override: 600 - ignore_empty_list: True - continue_if_exception: False - disable_action: True - filters: - - filtertype: age - source: name - direction: older - timestring: '%Y.%m.%d' - unit: days - unit_count: 1 - 4: - action: delete_snapshots - description: >- - "Delete snapshots older than 30 days" - options: - repository: logstash_snapshots - disable_action: True - timeout_override: 600 - ignore_empty_list: True - filters: - - filtertype: pattern - kind: prefix - value: curator- - exclude: - - filtertype: age - source: creation_date - direction: older - unit: days - unit_count: 30 + # 1: + # action: delete_indices + # description: >- + # "Delete indices older than 7 days" + # options: + # timeout_override: + # continue_if_exception: False + # ignore_empty_list: True + # disable_action: True + # filters: + # - filtertype: pattern + # kind: prefix + # value: logstash- + # - filtertype: age + # source: name + # direction: older + # timestring: '%Y.%m.%d' + # unit: days + # unit_count: 7 + # 2: + # action: delete_indices + # description: >- + # "Delete indices by age if available disk space is + # less than 80% total disk" + # options: + # timeout_override: 600 + # continue_if_exception: False + # ignore_empty_list: True + # disable_action: True + # filters: + # - filtertype: pattern + # kind: prefix + # value: logstash- + # - filtertype: space + # source: creation_date + # use_age: True + # # This space assumes the default PVC size of 5Gi times three data + # # replicas. This must be adjusted if changed due to Curator being + # # unable to calculate percentages of total disk space + # disk_space: 12 + # 3: + # action: snapshot + # description: >- + # "Snapshot indices older than one day" + # options: + # repository: logstash_snapshots + # # Leaving this blank results in the default name format + # name: + # wait_for_completion: True + # max_wait: 3600 + # wait_interval: 10 + # timeout_override: 600 + # ignore_empty_list: True + # continue_if_exception: False + # disable_action: True + # filters: + # - filtertype: age + # source: name + # direction: older + # timestring: '%Y.%m.%d' + # unit: days + # unit_count: 1 + # 4: + # action: delete_snapshots + # description: >- + # "Delete snapshots older than 30 days" + # options: + # repository: logstash_snapshots + # disable_action: True + # timeout_override: 600 + # ignore_empty_list: True + # filters: + # - filtertype: pattern + # kind: prefix + # value: curator- + # exclude: + # - filtertype: age + # source: creation_date + # direction: older + # unit: days + # unit_count: 30 config: # Remember, leave a key empty if there is no value. None will be a string, # not a Python "NoneType"