Repository navigation
Route console.phorge.fr to the svc cluster in HAProxy - #31
Merged
Merged
Conversation
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
Route
console.phorge.frto the ingress of thesvccluster, where the console is hosted (decision 0008 of Hangar).templates/haproxy.cfg.tftplgets the HTTP redirect to HTTPS and the SNI route tohttps-svc-ingress, written like the ones ofgit.phorge.fr. The host is added to the table of public hosts indocs/reference/network-plan.md.Why
The edge sends a host it does not know to the
controlingress, so without a routeconsole.phorge.frwould reach the wrong cluster.Checked
tofu validatepasses. The targeted plan onrouteros_file.files["usb1/haproxy-etc/haproxy.cfg"]replaces that one file (1 to add, 1 to destroy), and the only difference in its contents is the addedconsole.phorge.frlines. Nothing else is in the plan.https-svc-ingressalready exists forgit.phorge.fr.phorge.fralready resolves to the WAN address (wildcard).scripts/check_docs.py: layout and headers ok.Not covered
console.phorge.fryet: the console is not deployed, and its Traefik route and certificate (cert-manager) come with its Deployment onsvc.tofu fmt -checkreportsterraform.tfvars; I did not touch that file.Apply
The maintainer runs
tofu apply. The container reloads HAProxy by itself (decision 0002).Closes #30