fix: [nomad-step-5] Reorder HCL blocks in staging.hcl and chat.hcl to match edge.hcl pattern
Align block ordering (vault → network → volumes → restart → service → task) across all Nomad jobspecs for consistency.
This commit is contained in:
parent
12e25a57d2
commit
b07ca31c8b
2 changed files with 21 additions and 19 deletions
|
|
@ -42,15 +42,6 @@ job "chat" {
|
|||
role = "service-chat"
|
||||
}
|
||||
|
||||
# ── Host volumes ─────────────────────────────────────────────────────────
|
||||
# chat-history volume: declared in nomad/client.hcl, path
|
||||
# /srv/disinto/chat-history on the factory box.
|
||||
volume "chat-history" {
|
||||
type = "host"
|
||||
source = "chat-history"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
# ── Network ──────────────────────────────────────────────────────────────
|
||||
# External port 8080 for chat UI access (via edge proxy or direct).
|
||||
network {
|
||||
|
|
@ -60,6 +51,15 @@ job "chat" {
|
|||
}
|
||||
}
|
||||
|
||||
# ── Host volumes ────────────────────────────────────────────────────────
|
||||
# chat-history volume: declared in nomad/client.hcl, path
|
||||
# /srv/disinto/chat-history on the factory box.
|
||||
volume "chat-history" {
|
||||
type = "host"
|
||||
source = "chat-history"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
# ── Restart policy ───────────────────────────────────────────────────────
|
||||
restart {
|
||||
attempts = 3
|
||||
|
|
|
|||
|
|
@ -25,17 +25,10 @@ job "staging" {
|
|||
group "staging" {
|
||||
count = 1
|
||||
|
||||
# ── Host volumes ─────────────────────────────────────────────────────────
|
||||
# site-content volume: declared in nomad/client.hcl, path
|
||||
# /srv/disinto/docker on the factory box.
|
||||
volume "site-content" {
|
||||
type = "host"
|
||||
source = "site-content"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
# No Vault integration needed — no secrets required (static file server)
|
||||
# ── Vault workload identity (S5.2, issue #989) ──────────────────────────
|
||||
# No Vault integration needed — static file server with no secrets.
|
||||
|
||||
# ── Network ─────────────────────────────────────────────────────────────
|
||||
# Internal service — no external port. Edge proxy routes internally.
|
||||
network {
|
||||
port "http" {
|
||||
|
|
@ -44,6 +37,15 @@ job "staging" {
|
|||
}
|
||||
}
|
||||
|
||||
# ── Host volumes ────────────────────────────────────────────────────────
|
||||
# site-content volume: declared in nomad/client.hcl, path
|
||||
# /srv/disinto/docker on the factory box.
|
||||
volume "site-content" {
|
||||
type = "host"
|
||||
source = "site-content"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
restart {
|
||||
attempts = 3
|
||||
interval = "5m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue