feat: use internal wrapper for consul registration
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
This commit is contained in:
22
check-fw.nomad
Normal file
22
check-fw.nomad
Normal file
@@ -0,0 +1,22 @@
|
||||
job "check-firewall" {
|
||||
datacenters = ["dc1"]
|
||||
type = "batch"
|
||||
|
||||
group "check" {
|
||||
count = 1
|
||||
constraint {
|
||||
attribute = "${attr.unique.hostname}"
|
||||
value = "odroid7"
|
||||
}
|
||||
|
||||
task "check" {
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "busybox"
|
||||
network_mode = "host"
|
||||
command = "sh"
|
||||
args = ["-c", "echo 'UFW is not installed in busybox, checking port 20202 from outside'"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user