File tree 2 files changed +5
-2
lines changed
terraform/modules/k8s-addons 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ resource "helm_release" "filebeat" {
27
27
[data . template_file . filebeat . rendered ,
28
28
try (local. elk . helm_values_override , null ),
29
29
])
30
+ depends_on = [
31
+ helm_release . logstash
32
+ ]
30
33
}
31
34
32
35
resource "kubectl_manifest" "elk_external_secrets" {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ logstashConfig:
18
18
xpack.monitoring.elasticsearch.username: '$${ELASTICSEARCH_USERNAME}'
19
19
xpack.monitoring.elasticsearch.password: '$${ELASTICSEARCH_PASSWORD}'
20
20
xpack.monitoring.elasticsearch.ssl.certificate_authority: '/etc/logstash/certificates/ca.crt'
21
- xpack.monitoring.elasticsearch.hosts: ["https://elasticsearch-es-internal-http.elk.svc :9200"]
21
+ xpack.monitoring.elasticsearch.hosts: ["https://$${ELASTICSEARCH_HOST} :9200"]
22
22
23
23
logstashPipeline :
24
24
logstash.conf : |
@@ -30,7 +30,7 @@ logstashPipeline:
30
30
31
31
output {
32
32
elasticsearch {
33
- hosts => ["elasticsearch-es-internal-http.elk.svc :9200"]
33
+ hosts => ["$${ELASTICSEARCH_HOST} :9200"]
34
34
user => '$${ELASTICSEARCH_USERNAME}'
35
35
password => '$${ELASTICSEARCH_PASSWORD}'
36
36
index => "filebeat-%%{+yyyy.MM.dd}-000001"
You can’t perform that action at this time.
0 commit comments