Skip to content

Connect Git Repository to ArgoCD

This guide connects https://github.com/nsudhanva/homelab to ArgoCD so ApplicationSets can sync from Git.

Fetch the bootstrap password from the argocd-initial-admin-secret Secret:

Terminal window
kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath='{.data.password}' | base64 -d; echo

Use the CLI or UI. If you are on the tailnet, the UI is at https://argocd.sudhanva.me.

Terminal window
argocd login argocd.sudhanva.me \
--username admin \
--password "<INITIAL_PASSWORD>" \
--grpc-web

If the CLI cannot resolve argocd.sudhanva.me, verify split DNS is configured and the tailnet resolver is reachable:

Terminal window
dig +short argocd.sudhanva.me @100.100.100.100

Follow Tailscale if the query times out or returns no records.

The repo is public, so HTTPS is enough.

Terminal window
argocd repo add https://github.com/nsudhanva/homelab.git

Open ArgoCD, go to Settings, then Repositories, then Connect Repo. Use the HTTPS URL.

Terminal window
argocd repo list

You should see https://github.com/nsudhanva/homelab.git listed as a repository.