Nomad version: 1.9.3
Consul server + client version: 1.21.1 (latest)
job "mysql-server" {
datacenters = ["dc1"]
type = "service"
group "mysql-server" {
count = 1
service {
name = "mysql-server"
port = "db"
connect {
sidecar_service {}
}
}
restart {
attempts = 10
interval = "5m"
delay = "25s"
mode = "delay"
}
task "mysql-server" {
driver = "docker"
env = {
"MYSQL_ROOT_PASSWORD" = "super-duper-password"
}
config {
image = "mysql:9"
privileged = true
ports = ["db"]
}
resources {
cpu = 500
memory = 500
}
}
network {
mode = "bridge"
port "db" {
static = 3306
to = 3306
}
}
}
}
ERROR LOGS FROM SIDECAR
[2025-06-18 14:03:19.996][1][critical][main] [source/server/server.cc:416] error initializing config ' /secrets/envoy_bootstrap.json': Protobuf message (type envoy.config.bootstrap.v3.Bootstrap reason INVALID_ARGUMENT: invalid JSON in envoy.config.bootstrap.v3.Bootstrap @ static_resources.clusters[0]: message envoy.config.cluster.v3.Cluster, near 26:17 (offset 607): no such field: 'hosts') has unknown fields
[2025-06-18 14:03:19.996][1][info][main] [source/server/server.cc:1061] exiting
Protobuf message (type envoy.config.bootstrap.v3.Bootstrap reason INVALID_ARGUMENT: invalid JSON in envoy.config.bootstrap.v3.Bootstrap @ static_resources.clusters[0]: message envoy.config.cluster.v3.Cluster, near 26:17 (offset 607): no such field: 'hosts') has unknown fields