Commit 04c5e142 authored by Zamir Martins Filho's avatar Zamir Martins Filho Committed by Markus Koller

Disable ILM on ELK vendor yaml

ILM is enabled by default in 7.6.2
and WAF statistics is expecting daily
indices.
parent 31307c8b
---
title: Disable ILM on ELK vendor yaml
merge_request: 35398
author:
type: fixed
...@@ -27,6 +27,20 @@ RSpec.describe Clusters::Applications::ElasticStack do ...@@ -27,6 +27,20 @@ RSpec.describe Clusters::Applications::ElasticStack do
expect(subject.preinstall).to be_empty expect(subject.preinstall).to be_empty
end end
context 'within values.yaml' do
let(:values_yaml_content) {subject.files[:"values.yaml"]}
it 'contains the disabled index lifecycle management' do
expect(values_yaml_content).to include "setup.ilm.enabled: false"
end
it 'contains daily indices with respective template' do
expect(values_yaml_content).to include "index: \"filebeat-%{[agent.version]}-%{+yyyy.MM.dd}\""
expect(values_yaml_content).to include "setup.template.name: 'filebeat'"
expect(values_yaml_content).to include "setup.template.pattern: 'filebeat-*'"
end
end
context 'on a non rbac enabled cluster' do context 'on a non rbac enabled cluster' do
before do before do
elastic_stack.cluster.platform_kubernetes.abac! elastic_stack.cluster.platform_kubernetes.abac!
......
...@@ -14,8 +14,12 @@ filebeat: ...@@ -14,8 +14,12 @@ filebeat:
filebeatConfig: filebeatConfig:
filebeat.yml: | filebeat.yml: |
output.file.enabled: false output.file.enabled: false
setup.ilm.enabled: false
setup.template.name: 'filebeat'
setup.template.pattern: 'filebeat-*'
output.elasticsearch: output.elasticsearch:
hosts: ["http://elastic-stack-elasticsearch-master:9200"] hosts: ["http://elastic-stack-elasticsearch-master:9200"]
index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
filebeat.inputs: filebeat.inputs:
- type: container - type: container
paths: paths:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment