feat: depreciate consul and use nomad service discovery

This commit is contained in:
Nathaniel Landau
2023-10-21 22:18:23 -04:00
parent 041649cc5e
commit 5b426da3ae
32 changed files with 278 additions and 284 deletions

View File

@@ -158,6 +158,7 @@ job "TEMPLATE" {
service {
name = "${NOMAD_TASK_NAME}"
port = "port2"
provider = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.{{ homelab_domain_name }}`)",
@@ -178,7 +179,6 @@ job "TEMPLATE" {
check_restart {
limit = 3
grace = "1m"
ignore_warnings = true
}
} // service