[nomad-step-5] S5-fix-7 — staging port 80 collides with edge; staging should use dynamic port #1018
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1018
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 5 verification: edge can't deploy — port 80 collision with staging.
Root cause
Both
staging.hclandedge.hclbindstatic = 80. In compose, only edge exposes 80/443; staging is internal-only, reached via Docker network. Under Nomad, both are separate jobs competing for the same host port.Fix
nomad/jobs/staging.hcl: change port fromstatic = 80to dynamic:Edge finds staging via Nomad service discovery (
{{ range nomadService "staging" }}{{ .Address }}:{{ .Port }}{{ end }}) in the Caddyfile template.The Caddyfile in
edge.hclneeds a template stanza that renders upstream addresses from Nomad service discovery instead of hardcodedlocalhost:80.Acceptance criteria
curl http://<edge-ip>:80/returns staging content.Labels / meta
backlog+bug-report.