-
Notifications
You must be signed in to change notification settings - Fork 0
Fix ArgoCD Homepage widget DNS resolution by using cluster-local service URL #61
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: SRF-Audio <16975040+SRF-Audio@users.noreply.github.com>
The Homepage widget was failing with ENOTFOUND error because it was configured to use the Tailscale URL (argocd.rohu-shark.ts.net) which is not accessible from within the cluster. Changes: - Added argocd_homepage_token_widget_url variable for cluster-local URL - Updated homepage_deploy to use the widget URL from artifacts - Default widget URL is now http://argocd-server.argocd (cluster-local) - Server URL remains as Tailscale URL for CLI login from outside cluster Co-authored-by: SRF-Audio <16975040+SRF-Audio@users.noreply.github.com>
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.
@copilot all addresses should be in the full form http://argocd-server.argocd.svc.cluster.local
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.
Updated to use full form http://argocd-server.argocd.svc.cluster.local in commit a1877a9.
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.
@copilot same: fix the address form.
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.
Fixed to use full form http://argocd-server.argocd.svc.cluster.local in commit a1877a9.
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.
@copilot and here: fix the address format.
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.
Updated to use full form http://argocd-server.argocd.svc.cluster.local in commit a1877a9.
Updated all ArgoCD widget URLs from short form (http://argocd-server.argocd) to full form (http://argocd-server.argocd.svc.cluster.local) as requested. Files updated: - ansible/roles/argocd_homepage_token/defaults/main.yml - ansible/roles/homepage_deploy/defaults/main.yml - ansible/playbooks/coachlight-infra-stack.yml Co-authored-by: SRF-Audio <16975040+SRF-Audio@users.noreply.github.com>
Co-authored-by: SRF-Audio <16975040+SRF-Audio@users.noreply.github.com>
Investigation and Fix Plan
argocd.rohu-shark.ts.netansible/roles/homepage_deploy/templates/ingresses/argocd-homepage-ingress.yml.j2http://argocd-server.argocd.svc.cluster.local)Summary
Problem: Homepage's ArgoCD widget was failing with DNS resolution error (ENOTFOUND) when trying to connect to
argocd.rohu-shark.ts.net.Root Cause: Homepage runs inside the k3s cluster and cannot resolve Tailscale hostnames. The widget URL was hardcoded to use the external Tailscale URL.
Solution:
argocd_homepage_tokenroleargocd_homepage_token_server_url) remains as Tailscale URL for external CLI accessargocd_homepage_token_widget_url) uses full cluster-local service URL:http://argocd-server.argocd.svc.cluster.localFiles Modified:
ansible/roles/argocd_homepage_token/meta/argument_specs.yml- Added widget_url parameteransible/roles/argocd_homepage_token/defaults/main.yml- Added widget_url with full cluster URLansible/roles/argocd_homepage_token/tasks/main.yml- Exposed widget_url in artifactsansible/roles/homepage_deploy/meta/argument_specs.yml- Added argocd_widget_url parameteransible/roles/homepage_deploy/defaults/main.yml- Added argocd_widget_url with full cluster URLansible/roles/homepage_deploy/templates/ingresses/argocd-homepage-ingress.yml.j2- Use variable instead of hardcoded URLansible/playbooks/coachlight-infra-stack.yml- Pass widget_url from artifacts with full cluster URLOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.