diff options
author | makefunstuff <[email protected]> | 2024-06-29 01:34:52 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-29 01:34:52 +0200 |
commit | 6c36c0b9a98bd7741247fdc80db3c2e64fcbf432 (patch) | |
tree | bd5d4c12fff7cf0f3209c5d31e4f1766bd2b2a83 /tools | |
parent | 74090610167b9c222ccee75905757494b3b504a4 (diff) | |
download | k3s-lab-6c36c0b9a98bd7741247fdc80db3c2e64fcbf432.tar.gz |
logstash connect
Diffstat (limited to '')
-rw-r--r-- | tools/elasticsearch/values.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/elasticsearch/values.yaml b/tools/elasticsearch/values.yaml index 23cdd8a..0304196 100644 --- a/tools/elasticsearch/values.yaml +++ b/tools/elasticsearch/values.yaml @@ -31,6 +31,21 @@ logstash: logstash.yml: | http.host: "0.0.0.0" xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ] + secretMounts: + - name: "elasticsearch-master-certs" + secretName: "elasticsearch-master-certs" + path: "/usr/share/logstash/config/elasticsearch-master-certs" + extraEnvs: + - name: "ELASTICSEARCH_USERNAME" + valueFrom: + secretKeyRef: + name: elasticsearch-master-credentials + key: username + - name: "ELASTICSEARCH_PASSWORD" + valueFrom: + secretKeyRef: + name: elasticsearch-master-credentials + key: password logstashPipeline: logstash.conf: | input { @@ -42,6 +57,9 @@ logstash: output { elasticsearch { hosts => ["http://elasticsearch-master.monitoring.svc.cluster.local:9200"] + cacert => /usr/share/logstash/config/elasticsearch-master-certs/ca.crt + user => '${ELASTICSEARCH_USERNAME}' + passwrod => '${ELASTICSEARCH_PASSWORD}' index => "logstash-%{+YYYY.MM.dd}" } } |