Elasticsearch: Add job history to Curator, update schedule key

This updates the Elastic Curator cron job to include configuration
for successful and failed job history limits, similar to the other
cron jobs we deploy. This also moves the key for configuring the
cron schedule from under .Values.conf.curator to a new top level
jobs key to maintain consistency

This also fixes an indentation issue with the deployment overrides
for Curator as well as adds the overrides for the Armada job

Change-Id: I9c720df9677215bdd2bf18be77959bd5f671c0ca
Signed-off-by: Steve Wilkerson <sw5822@att.com>
This commit is contained in:
Steve Wilkerson 2019-05-21 13:10:07 -05:00 committed by Steve Wilkerson
parent 8cb4051fc8
commit 0a8b710083
5 changed files with 77 additions and 49 deletions

View File

@ -29,7 +29,10 @@ metadata:
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
schedule: {{ .Values.conf.curator.schedule | quote }}
schedule: {{ .Values.jobs.curator.cron | quote }}
successfulJobsHistoryLimit: {{ .Values.jobs.curator.history.success }}
failedJobsHistoryLimit: {{ .Values.jobs.curator.history.failed }}
concurrencyPolicy: Forbid
jobTemplate:
metadata:
labels:

View File

@ -352,6 +352,13 @@ secrets:
elasticsearch:
public: elasticsearch-tls-public
jobs:
curator:
cron: "* */6 * * *"
history:
success: 3
failed: 1
conf:
httpd: |
ServerRoot "/usr/local/apache2"
@ -490,8 +497,6 @@ conf:
ceph:
admin_keyring: null
curator:
#run every 6th hour
schedule: "0 */6 * * *"
action_file:
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"

View File

@ -403,6 +403,28 @@ data:
pod_name:
type: keyword
index: false
curator:
action_file:
actions:
1:
action: delete_indices
description: >-
"Delete indices older than 365 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: 365
source:
type: local
location: ${OSH_INFRA_PATH}

View File

@ -35,7 +35,6 @@ conf:
snapshots:
enabled: true
curator:
schedule: "0 */6 * * *"
action_file:
actions:
1:

View File

@ -33,7 +33,6 @@ conf:
snapshots:
enabled: true
curator:
schedule: "0 */6 * * *"
action_file:
actions:
1: