feat(elk): add Traefik configuration for Elasticsearch service
This commit is contained in:
parent
82b6c016d3
commit
c97a558353
1 changed files with 10 additions and 0 deletions
|
@ -82,6 +82,16 @@ job "elk" {
|
|||
name = "elk-node-elasticsearch-http"
|
||||
provider = "consul"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.es.rule=Host(`es.brmartin.co.uk`)",
|
||||
"traefik.http.routers.es.entrypoints=websecure",
|
||||
"traefik.http.routers.es.service=es",
|
||||
"traefik.http.services.es.loadbalancer.serversTransport=es",
|
||||
"traefik.http.serversTransports.es.rootCAs=[\"/etc/traefik/rootca/elasticsearch.crt\"]",
|
||||
"traefik.http.serversTransports.es.insecureSkipVerify=true", # TODO: Hostname verification will fail without this
|
||||
]
|
||||
}
|
||||
|
||||
service {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue