Add hostNetworking parameter to logstash config
This change enables Logstash to receive collectd logs. Change-Id: Id25138f7f153b38ef6db362f0390325ad6f58729 Signed-off-by: Simon Cousineau <Simon.Cousineau@windriver.com>
This commit is contained in:
parent
f1391c51bd
commit
64269d4f1b
@ -26,6 +26,7 @@ Patch05: 0005-readiness-probe-enhancements.patch
|
||||
Patch06: 0006-Metricbeat-nodeSelector-and-tolerations-config.patch
|
||||
Patch07: 0007-Add-command-and-args-parameters-to-beats-and-logstash.patch
|
||||
Patch08: 0008-Add-updateStrategy-parameter-to-beats-config.patch
|
||||
Patch09: 0009-Add-hostNetworking-parameter-to-logstash-config.patch
|
||||
|
||||
BuildRequires: helm
|
||||
|
||||
@ -42,6 +43,7 @@ Monitor Helm elasticsearch charts
|
||||
%patch06 -p1
|
||||
%patch07 -p1
|
||||
%patch08 -p1
|
||||
%patch09 -p1
|
||||
|
||||
%build
|
||||
# initialize helm and build the toolkit
|
||||
|
@ -0,0 +1,38 @@
|
||||
From e74f1d703b1f2c7b71038a95be90bebbef9613da Mon Sep 17 00:00:00 2001
|
||||
From: Simon Cousineau <Simon.Cousineau@windriver.com>
|
||||
Date: Thu, 16 Apr 2020 09:29:41 -0400
|
||||
Subject: [PATCH 1/1] Add hostNetworking parameter to logstash config
|
||||
|
||||
---
|
||||
logstash/templates/statefulset.yaml | 4 ++++
|
||||
logstash/values.yaml | 2 ++
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/logstash/templates/statefulset.yaml b/logstash/templates/statefulset.yaml
|
||||
index e162023..1355e7b 100644
|
||||
--- a/logstash/templates/statefulset.yaml
|
||||
+++ b/logstash/templates/statefulset.yaml
|
||||
@@ -110,6 +110,10 @@ spec:
|
||||
{{ toYaml . | indent 10 }}
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriod }}
|
||||
+ {{- if .Values.hostNetworking }}
|
||||
+ hostNetwork: true
|
||||
+ dnsPolicy: ClusterFirstWithHostNet
|
||||
+ {{- end }}
|
||||
volumes:
|
||||
{{- range .Values.secretMounts }}
|
||||
- name: {{ .name }}
|
||||
diff --git a/logstash/values.yaml b/logstash/values.yaml
|
||||
index 9fedf40..6c6ef5d 100755
|
||||
--- a/logstash/values.yaml
|
||||
+++ b/logstash/values.yaml
|
||||
@@ -212,3 +212,5 @@ command: []
|
||||
|
||||
# pass custom args. This is equivalent of Cmd in docker
|
||||
args: []
|
||||
+
|
||||
+hostNetworking: true
|
||||
--
|
||||
2.20.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user