point dev.quant/prod.quant vhosts at nuke workers - #44
Merged
Conversation
…le instead of deleting it
There was a problem hiding this comment.
The review is straightforward. Single file change, clear intent, good comments. Let me compile the report.
Must Fix (Critical): None.
Should Fix (Important): None.
Nice to Have (Optional): None.
Notes: This is a pure infrastructure configuration change (nginx node definition in Python). The dev.quant vhost is pointed at the dev worker (192.168.178.34) and prod.quant at the prod worker (192.168.178.44), both via the VPN — consistent with how the root quant vhost already works. The comments are thorough and explain the backend_servers upstream retention (deliberate — dropping the last upstream unmanages the file instead of deleting it). LICENSE is present. No issues.
{
"verdict": "approve",
"summary": "Single-file infrastructure change: dev.quant and prod.quant nginx vhosts are migrated from the decommissioned backend_servers upstream to the nuke worker nodes directly (dev worker 192.168.178.34, prod worker 192.168.178.44). Comments are thorough and explain both the migration and why the now-unused backend_servers upstream block is intentionally retained.",
"comments": [],
"concerns_addressed": []
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Repoints the
dev.quantandprod.quantnginx vhosts onhz.hetzner-1from the deadbackend_serversupstream to the per-env nuke workers.Already applied to the live host (item-scoped
bw apply+nginx -t && systemctl reload) — this PR brings master in line with what is running.Why
Both hosts served 503
no available serversince the quant to nuke migration:Those are the OLD quant masters
nuke-k3s-master-0/1/2(LAN192.168.178.38/.39/.40), all decommissioned — so nginx had no healthy peer. The rootquantvhost had already been migrated tohttp://192.168.178.44; its own comment recorded that the other two were left behind:Targets
prod.quanthttp://192.168.178.44dev.quanthttp://192.168.178.34Worker, not master: the k3s
svclb-traefikDaemonSet reportsDESIRED=1on each 2-node cluster because it does not toleratenode_type=master:NoSchedule. Nothing listens on the masters, so pointing there would 503 exactly as before. traefik's LoadBalancer EXTERNAL-IP confirms it advertises only the worker.Both LAN IPs are reachable over the VPN via existing ccd iroutes —
nuke-k3s-prod-worker-0(vpn 172.16.90.22) andnuke-k3s-dev(vpn 172.16.90.26). No OpenVPN change needed.The second commit reverts part of the first
54cda91also deleted the now-unreferencedbackend_serversupstream;fafc0ecputs it back.bundles/nginx/items.pyonly declares theupstreams.conffile itemif upstreams:— so dropping the last upstream unmanages the file rather than deleting it, leaving a stale copy on the server listing three dead hosts.bw diffflagged this as an unexpectedupstreams.confchange; with the block restored the diff is exactly the two vhost files. Removing it properly needs a follow-up that also deletes the file, and the retained block now carries a comment saying so.(Commit
54cda91's message still mentions dropping the upstream — superseded byfafc0ec.)Verification
bw diff -b master hz.hetzner-1→ exactlydev.quant.conf+prod.quant.confbw apply --only <the two files>→ 2 fixed, 0 failed, 379 skipped (no unrelated drift applied)nginx -tOK, reloadedquant.benjamin-borbe.deunchanged (307 to Google OAuth)