ArgoCD: switch all apps to internal Forgejo URL (DERP hairpin fix) #143
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#143
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?
Type
Bug
Lineage
Discovered during
plan-pal-e-mail→ Phase 1 deploymentRepo
forgejo_admin/pal-e-platformWhat Broke
tofu applyfails when creating new ArgoCD Applications. ArgoCD repo-server cannot reachforgejo.tail5b443a.ts.netfrom inside the cluster — TLS handshake fails with EOF. DNS resolves to DERP relay IPs (2607:f740:0:3f::2f0, 208.111.35.209), IPv6 unreachable, IPv4 TLS terminates prematurely.Error:
rpc error: code = Unknown desc = failed to list refs: Get "https://forgejo.tail5b443a.ts.net/forgejo_admin/pal-e-deployments.git/info/refs?service=git-upload-pack": EOFExisting apps still sync from cache, but new app creation or cache expiry will fail.
Repro Steps
k3s.tfvarswithsource_repo = "forgejo_admin/pal-e-deployments"tofu apply -lock=false -var-file=k3s.tfvarsExpected Behavior
tofu applyshould create ArgoCD Applications successfully. ArgoCD should use the internal Forgejo service URL (http://forgejo-http.forgejo.svc.cluster.local) to avoid the Tailscale DERP hairpin path entirely.Environment
kubectl get deploy -n argocd argocd-server -o jsonpath='{.spec.template.spec.containers[0].image}'Acceptance Criteria
http://forgejo-http.forgejo.svc.cluster.localas repoURLtofu applyfor new services succeeds without DERP failuresterraform/network-policies.tfallows argocd → forgejo ingressservice-onboarding-sopupdated to document internal URLRelated
plan-pal-e-mail— discovered during Phase 1feedback_ci_pipeline_lessons.md— same DERP hairpin class of issuesop-ci-pipeline-recovery— CI recovery procedures