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

@@ -57,6 +57,7 @@ job "nginx" {
service {
port = "web"
name = "${NOMAD_JOB_NAME}"
provider = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`${NOMAD_JOB_NAME}.{{ homelab_domain_name }}`)",
@@ -75,7 +76,6 @@ job "nginx" {
check_restart {
limit = 0
grace = "1m"
ignore_warnings = true
}
} // service