fix(quadlet): drop HostAddr from prometheus.unit - podman 5.7.0 rejects the key and the quadlet generator then aborts the ENTIRE user batch, silently orphaning every other unit (prometheus.service vanished while the container ran; deploy died 'Unit prometheus.service not found', live 2026-10-21). host.containers.internal resolves natively; the key was never needed.
This commit is contained in:
1 parent
c4623f1629
commit
7a8cc83385
1 file changed
+9
-7
@@ -43,14 +43,16 @@ Wants=network-online.target
|
|||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=prometheus
|
ContainerName=prometheus
|
||||||
Image=docker.io/prom/prometheus:latest
|
Image=docker.io/prom/prometheus:latest@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2
|
||||||
Network=dankclaw_default
|
Network=dankclaw_default
|
||||||
# Name the podman gateway so scrape jobs can reach same-host targets (the
|
# Same-host scrape targets are dialed at host.containers.internal (the podman
|
||||||
# netavark hairpin gap bars this container from dialing its own host's LAN
|
# gateway): a bridge container cannot dial its own host's LAN IP (netavark
|
||||||
# IP; the cadvisor/gpu jobs and the blackbox scrape all ride this name).
|
# hairpin gap, measured 2026-10-21), and traffic to the gateway lands on host
|
||||||
# Same mechanism the hermes Caddy upstream learned the hard way (Container
|
# loopback / published ports (cadvisor/gpu jobs and the blackbox scrape all
|
||||||
# Host Reachability in the vault).
|
# ride it). The name resolves natively — NO HostAddr key: quadlet 5.7.0 calls
|
||||||
HostAddr=host.containers.internal=169.254.1.2
|
# it unsupported and the WHOLE user quadlet batch then fails to generate,
|
||||||
|
# silently orphaning every other unit (live 2026-10-21: prometheus.service
|
||||||
|
# vanished while its container kept running as an orphan).
|
||||||
User=0:0
|
User=0:0
|
||||||
Exec=--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=30d --web.enable-lifecycle
|
Exec=--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=30d --web.enable-lifecycle
|
||||||
PublishPort=127.0.0.1:9090:9090
|
PublishPort=127.0.0.1:9090:9090
|
||||||
|
|||||||
Reference in new issue
Block a user