jenkins health check

This commit is contained in:
2023-10-18 19:50:33 +02:00
parent 5a1f427714
commit 36c74789df

View File

@@ -21,6 +21,12 @@ job "jenkins" {
"traefik.enable=true",
"traefik.http.routers.jenkins.rule=Host(`jenkins.service.nr5`)",
]
check {
type = "http"
path = "/login"
interval = "60s"
timeout = "10s"
}
}
volume "jenkins-master" {
@@ -52,10 +58,10 @@ job "jenkins" {
JAVA_OPTS = "-Dhudson.footerURL=http://jenkins.service.nr5"
}
resources {
cpu = 200
memory = 256
cpu = 500
memory = 512
}
}
}
}
}