-
Notifications
You must be signed in to change notification settings - Fork 0
feat(foundry): add public Ingress for argocd.gauchoracing.com #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+61
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Public Ingress for argocd.gauchoracing.com on the foundry cluster. | ||
| # Same pattern as sentinel — Traefik + external-dns + tunnel. | ||
| # | ||
| # The ArgoCD install itself is managed outside GitOps (kubectl-applied | ||
| # from the upstream install manifest on foundry). This Application only | ||
| # owns the public Ingress resource. | ||
|
|
||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: argocd-server-ingress | ||
| namespace: argocd | ||
| finalizers: | ||
| - resources-finalizer.argocd.argoproj.io | ||
| spec: | ||
| project: default | ||
| source: | ||
| repoURL: https://github.com/Gaucho-Racing/infrastructure.git | ||
| targetRevision: main | ||
| path: kubernetes/manifests-foundry/argocd-server-ingress | ||
| destination: | ||
| server: https://kubernetes.default.svc | ||
| namespace: argocd | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| syncOptions: | ||
| - ServerSideApply=true |
32 changes: 32 additions & 0 deletions
32
kubernetes/manifests-foundry/argocd-server-ingress/ingress.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Public Ingress for the foundry cluster's ArgoCD UI at | ||
| # argocd.gauchoracing.com. Traefik receives HTTP forwarded by the | ||
| # cloudflared tunnel; TLS terminates at the Cloudflare edge. | ||
| # | ||
| # argocd-server serves plain HTTP on port 80 → targetPort 8080, so no | ||
| # `server.insecure` patch is needed on the existing foundry ArgoCD install. | ||
| # | ||
| # DNS is managed by the foundry external-dns instance: | ||
| # - hostname derived from spec.rules[].host | ||
| # - cloudflare-proxied annotation flips the CF record orange | ||
| # - target is the gr-foundry tunnel via external-dns --default-targets | ||
|
|
||
| apiVersion: networking.k8s.io/v1 | ||
| kind: Ingress | ||
| metadata: | ||
| name: argocd-server-public | ||
| namespace: argocd | ||
| annotations: | ||
| external-dns.alpha.kubernetes.io/cloudflare-proxied: "true" | ||
| spec: | ||
| ingressClassName: traefik | ||
| rules: | ||
| - host: argocd.gauchoracing.com | ||
| http: | ||
| paths: | ||
| - path: / | ||
| pathType: Prefix | ||
| backend: | ||
| service: | ||
| name: argocd-server | ||
| port: | ||
| number: 80 | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this foundry ingress is used behind the Cloudflare Tunnel,
infra/environments/prod/foundry.tf:88sends plain HTTP to Traefik and this backend forwards that plain HTTP toargocd-serverport 80. The Argo CD ingress docs describe port 80 as HTTP that redirects to HTTPS unless the API server is run with TLS disabled; the EKS install explicitly setsserver.insecureininfra/modules/argocd/main.tf:71, but this foundry app says the upstream install is left unchanged, so after DNS cutover the public UI will redirect back to the same HTTPS URL instead of loading. Add a managedargocd-cmd-params-cm/Deployment patch to setserver.insecure(or proxy to the HTTPS backend) along with this ingress.Useful? React with 👍 / 👎.