Merge "Update curator auth config and actions"
This commit is contained in:
commit
f059e9a6df
@ -20,6 +20,7 @@ limitations under the License.
|
||||
{{- if and (.Values.conf.elasticsearch.repository.enabled) (empty .Values.conf.elasticsearch.config.path.repo) -}}
|
||||
{{- set .Values.conf.elasticsearch.config.path "repo" .Values.conf.elasticsearch.repository.location -}}
|
||||
{{- end -}}
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
@ -47,17 +47,10 @@ spec:
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.curator | include "helm-toolkit.snippets.kubernetes_resources" | indent 14 }}
|
||||
env:
|
||||
- name: ELASTICSEARCH_HOST
|
||||
value: {{ tuple "elasticsearch" "internal" "http" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
|
||||
- name: ELASTICSEARCH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $esUserSecret }}
|
||||
key: ELASTICSEARCH_USERNAME
|
||||
- name: ELASTICSEARCH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $esUserSecret }}
|
||||
key: ELASTICSEARCH_PASSWORD
|
||||
key: ELASTICSEARCH_URI
|
||||
volumeMounts:
|
||||
- name: pod-etc-curator
|
||||
mountPath: /etc/config
|
||||
|
@ -195,13 +195,15 @@ conf:
|
||||
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
|
||||
exclude: True
|
||||
2:
|
||||
action: delete_indices
|
||||
description: >-
|
||||
@ -213,6 +215,9 @@ conf:
|
||||
ignore_empty_list: True
|
||||
disable_action: True
|
||||
filters:
|
||||
- filtertype: pattern
|
||||
kind: prefix
|
||||
value: logstash-
|
||||
- filtertype: space
|
||||
source: creation_date
|
||||
use_age: True
|
||||
@ -220,7 +225,6 @@ conf:
|
||||
# replicas. This must be adjusted if changed due to Curator being
|
||||
# unable to calculate percentages of total disk space
|
||||
disk_space: 12
|
||||
exclude: False
|
||||
3:
|
||||
action: snapshot
|
||||
description: >-
|
||||
@ -243,7 +247,6 @@ conf:
|
||||
timestring: '%Y.%m.%d'
|
||||
unit: days
|
||||
unit_count: 1
|
||||
exclude: False
|
||||
4:
|
||||
action: delete_snapshots
|
||||
description: >-
|
||||
@ -271,7 +274,6 @@ conf:
|
||||
- ${ELASTICSEARCH_HOST}
|
||||
use_ssl: False
|
||||
ssl_no_validate: False
|
||||
http_auth: ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}
|
||||
timeout: 60
|
||||
logging:
|
||||
loglevel: INFO
|
||||
|
Loading…
Reference in New Issue
Block a user