Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[logstash] use new elasticsearch credentials (#1402)
Browse files Browse the repository at this point in the history
* [logstash] use new elasticsearch credentials

This commit updates logstash values to use the new Elasticsearch
credentials from #1384.

Relates to #1375#

* fixup! [logstash] use new elasticsearch credentials
  • Loading branch information
jmlrt committed Oct 13, 2021
1 parent 715eeda commit b5e5609
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
5 changes: 4 additions & 1 deletion logstash/examples/elasticsearch/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ http:
http://elasticsearch-master:9200/_cat/indices:
status: 200
timeout: 2000
username: "{{ .Env.ELASTICSEARCH_USERNAME }}"
password: "{{ .Env.ELASTICSEARCH_PASSWORD }}"
body:
- "logstash"

Expand All @@ -51,4 +53,5 @@ file:
filetype: file
contains:
- 'input { exec { command => "uptime" interval => 30 } }'
- 'output { elasticsearch { hosts => ["http://elasticsearch-master:9200"] index => "logstash" } }'
- 'hosts => ["http://elasticsearch-master:9200"]'
- 'index => "logstash"'
21 changes: 20 additions & 1 deletion logstash/examples/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@ logstashConfig:
logstashPipeline:
uptime.conf: |
input { exec { command => "uptime" interval => 30 } }
output { elasticsearch { hosts => ["http://elasticsearch-master:9200"] index => "logstash" } }
output {
elasticsearch {
hosts => ["http://elasticsearch-master:9200"]
user => '${ELASTICSEARCH_USERNAME}'
password => '${ELASTICSEARCH_PASSWORD}'
index => "logstash"
}
}
extraEnvs:
- name: "ELASTICSEARCH_USERNAME"
valueFrom:
secretKeyRef:
name: elasticsearch-master-credentials
key: username
- name: "ELASTICSEARCH_PASSWORD"
valueFrom:
secretKeyRef:
name: elasticsearch-master-credentials
key: password
8 changes: 4 additions & 4 deletions logstash/examples/security/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ secretMounts:
path: /usr/share/logstash/config/certs

extraEnvs:
- name: 'ELASTICSEARCH_USERNAME'
- name: "ELASTICSEARCH_USERNAME"
valueFrom:
secretKeyRef:
name: elastic-credentials
name: security-master-credentials
key: username
- name: 'ELASTICSEARCH_PASSWORD'
- name: "ELASTICSEARCH_PASSWORD"
valueFrom:
secretKeyRef:
name: elastic-credentials
name: security-master-credentials
key: password

0 comments on commit b5e5609

Please sign in to comment.