about summary refs log tree commit diff
path: root/tools/elasticsearch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/elasticsearch')
-rw-r--r--tools/elasticsearch/values.yaml18
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}"
         }
       }