From ddfb2c16cab858c179b441514e2522acd0d76abe Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Sat, 21 Dec 2024 22:02:31 +0000 Subject: [PATCH] Revert "fix(elk): update Elasticsearch host configuration to use load balancer" Kibana doesn't have access to the consul DNS. This reverts commit c0ea71da1508e62ca9df86058fb18ee0b664610b. --- modules/elk/jobspec.nomad.hcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/elk/jobspec.nomad.hcl b/modules/elk/jobspec.nomad.hcl index 6e3f9fe..02c77d3 100644 --- a/modules/elk/jobspec.nomad.hcl +++ b/modules/elk/jobspec.nomad.hcl @@ -314,7 +314,8 @@ job "elk" { data = <<-EOF elasticsearch: hosts: - - https://elk-lb-nginx.service.consul:9200 + {{ range service "elk-node-http" }} + - https://{{ .Address }}:{{ .Port }}{{ end }} username: ${ELASTICSEARCH_USERNAME} password: ${ELASTICSEARCH_PASSWORD} requestTimeout: 600000