@@ -15,7 +15,18 @@ logstashConfig: {}
15
15
16
16
# Allows you to add any pipeline files in /usr/share/logstash/pipeline/
17
17
# ## ***warn*** there is a hardcoded logstash.conf in the image, override it first
18
- logstashPipeline : {}
18
+ logstashPipeline :
19
+ logstash.conf : |
20
+ input { exec { command => "uptime" interval => 30 } }
21
+ output {
22
+ elasticsearch {
23
+ hosts => ["https://elasticsearch-master:9200"]
24
+ cacert => '/usr/share/logstash/config/certs/ca.crt'
25
+ user => '${ELASTICSEARCH_USERNAME}'
26
+ password => '${ELASTICSEARCH_PASSWORD}'
27
+ index => "logstash"
28
+ }
29
+ }
19
30
# logstash.conf: |
20
31
# input {
21
32
# exec {
@@ -34,7 +45,17 @@ logstashPattern: {}
34
45
# Extra environment variables to append to this nodeGroup
35
46
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
36
47
# syntax here
37
- extraEnvs : []
48
+ extraEnvs :
49
+ - name : " ELASTICSEARCH_USERNAME"
50
+ valueFrom :
51
+ secretKeyRef :
52
+ name : elasticsearch-master-credentials
53
+ key : username
54
+ - name : " ELASTICSEARCH_PASSWORD"
55
+ valueFrom :
56
+ secretKeyRef :
57
+ name : elasticsearch-master-credentials
58
+ key : password
38
59
# - name: MY_ENVIRONMENT_VAR
39
60
# value: the_value_goes_here
40
61
@@ -62,7 +83,11 @@ secrets: []
62
83
# cert.key.filepath: "secrets.crt" # The path to file should be relative to the `values.yaml` file.
63
84
64
85
# A list of secrets and their paths to mount inside the pod
65
- secretMounts : []
86
+ secretMounts :
87
+ - name : elasticsearch-master-certs
88
+ secretName : elasticsearch-master-certs
89
+ path : /usr/share/logstash/config/certs
90
+
66
91
67
92
hostAliases : []
68
93
# - ip: "127.0.0.1"
0 commit comments