Revert "feat(elk): repurpose Neto node to tiebreaker"
This reverts commit 5edcb7d27502e18d72c14aa092def249f23dc849.
This commit is contained in:
parent
db35c2c1fc
commit
480c09d741
1 changed files with 1 additions and 85 deletions
|
@ -6,18 +6,12 @@ job "elk" {
|
||||||
|
|
||||||
group "node" {
|
group "node" {
|
||||||
|
|
||||||
count = 2
|
count = 3
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
distinct_hosts = true
|
distinct_hosts = true
|
||||||
}
|
}
|
||||||
|
|
||||||
constraint {
|
|
||||||
attribute = "${node.unique.name}"
|
|
||||||
operator = "set_contains_any"
|
|
||||||
value = "Hestia,Nyx"
|
|
||||||
}
|
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
port "http" {
|
port "http" {
|
||||||
|
@ -89,84 +83,6 @@ job "elk" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group "tiebreaker" {
|
|
||||||
|
|
||||||
constraint {
|
|
||||||
attribute = "${node.unique.name}"
|
|
||||||
value = "Neto"
|
|
||||||
}
|
|
||||||
|
|
||||||
network {
|
|
||||||
mode = "bridge"
|
|
||||||
port "http" {
|
|
||||||
static = 9200
|
|
||||||
}
|
|
||||||
port "transport" {
|
|
||||||
static = 9300
|
|
||||||
}
|
|
||||||
port "envoy_metrics" {
|
|
||||||
to = 9102
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
service {
|
|
||||||
provider = "consul"
|
|
||||||
port = "9200"
|
|
||||||
|
|
||||||
meta {
|
|
||||||
envoy_metrics_port = "${NOMAD_HOST_PORT_envoy_metrics}"
|
|
||||||
}
|
|
||||||
|
|
||||||
connect {
|
|
||||||
sidecar_service {
|
|
||||||
proxy {
|
|
||||||
expose {
|
|
||||||
path {
|
|
||||||
path = "/metrics"
|
|
||||||
protocol = "http"
|
|
||||||
local_path_port = 9102
|
|
||||||
listener_port = "envoy_metrics"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
transparent_proxy {
|
|
||||||
exclude_inbound_ports = ["9200", "9300"]
|
|
||||||
exclude_outbound_ports = [9200, 9300]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
service {
|
|
||||||
provider = "consul"
|
|
||||||
port = "transport"
|
|
||||||
}
|
|
||||||
|
|
||||||
task "elasticsearch" {
|
|
||||||
driver = "docker"
|
|
||||||
|
|
||||||
config {
|
|
||||||
image = "docker.elastic.co/elasticsearch/elasticsearch:${var.elastic_version}"
|
|
||||||
|
|
||||||
ports = ["9200", "9300"]
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"/mnt/docker/elastic-${node.unique.name}/config:/usr/share/elasticsearch/config",
|
|
||||||
"/mnt/docker/elastic-${node.unique.name}/data:/usr/share/elasticsearch/data",
|
|
||||||
]
|
|
||||||
|
|
||||||
ulimit {
|
|
||||||
memlock = "-1:-1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
resources {
|
|
||||||
cpu = 500
|
|
||||||
memory = 1536
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
group "kibana" {
|
group "kibana" {
|
||||||
|
|
||||||
count = 2
|
count = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue