The example job configuration here with the latest package versions in ports:
- Nomad 1.5.3
- nomad-pot-driver 0.9.0
- pot 0.15.5
...results in a tcp health check that simply reports: invalid port "http": port label not found.
I have also tried adapting the job to be:
job "example" {
datacenters = ["dc1"]
type = "service"
group "group1" {
network {
port "http" { to = 80 }
}
count = 1
task "www1" {
driver = "pot"
service {
provider = "nomad"
tags = ["nginx", "www"]
name = "nginx-example-service"
port = "http"
check {
name = "http_probe"
type = "http"
path = "/"
interval = "10s"
timeout = "3s"
}
}
config {
image = "https://potluck.honeyguide.net/nginx-nomad"
pot = "nginx-nomad-amd64-13_1"
tag = "1.1.13"
command = "nginx"
args = ["-g","'daemon off;'"]
#copy = [
# "/mnt/s3/web/nginx.conf:/usr/local/etc/nginx/nginx.conf",
#]
#mount = [
# "/mnt/s3/web/www:/mnt"
#]
}
resources {
cpu = 200
memory = 64
network {
mbits = 10
}
}
}
}
}
But that instead tries to access the port on the host's IPv6 address instead of just going
nomad: Get "http://[2a01:XXXX:AAAA::fe6b:566e]:27713/": dial tcp [2a01:XXXX:AAAA::fe6b:566e]:27713:
Instead of just directly probing the IPv4 address on the pot:
pot name : www1_2ab8deb6_6778e4b0-9bcc-e17c-102d-554d74edd29f
network : public-bridge
ip : 10.192.0.8
active : true
# curl 10.192.0.8
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
...
The example job configuration here with the latest package versions in ports:
...results in a
tcphealth check that simply reports:invalid port "http": port label not found.I have also tried adapting the job to be:
But that instead tries to access the port on the host's IPv6 address instead of just going
Instead of just directly probing the IPv4 address on the pot: