Commit 281e996f authored by Markus Koller's avatar Markus Koller

Merge branch 'disable_ilm_on_ELK_yaml' into 'master'

Disable ILM on ELK vendor yaml

See merge request gitlab-org/gitlab!35398
parents 4addd43e 04c5e142
---
title: Disable ILM on ELK vendor yaml
merge_request: 35398
author:
type: fixed
......@@ -27,6 +27,20 @@ RSpec.describe Clusters::Applications::ElasticStack do
expect(subject.preinstall).to be_empty
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
before do
elastic_stack.cluster.platform_kubernetes.abac!
......
......@@ -14,8 +14,12 @@ filebeat:
filebeatConfig:
filebeat.yml: |
output.file.enabled: false
setup.ilm.enabled: false
setup.template.name: 'filebeat'
setup.template.pattern: 'filebeat-*'
output.elasticsearch:
hosts: ["http://elastic-stack-elasticsearch-master:9200"]
index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
filebeat.inputs:
- type: container
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