Connect Git Repository to ArgoCD
Connect This Repo To ArgoCD
Section titled “Connect This Repo To ArgoCD”This guide connects https://github.com/nsudhanva/homelab to ArgoCD so ApplicationSets can sync from Git.
Step 1: Get the initial admin password
Section titled “Step 1: Get the initial admin password”Fetch the bootstrap password from the argocd-initial-admin-secret Secret:
kubectl -n argocd get secret argocd-initial-admin-secret \ -o jsonpath='{.data.password}' | base64 -d; echoStep 2: Sign in to ArgoCD
Section titled “Step 2: Sign in to ArgoCD”Use the CLI or UI. If you are on the tailnet, the UI is at https://argocd.sudhanva.me.
argocd login argocd.sudhanva.me \ --username admin \ --password "<INITIAL_PASSWORD>" \ --grpc-webIf the CLI cannot resolve argocd.sudhanva.me, verify split DNS is configured and the tailnet resolver is reachable:
dig +short argocd.sudhanva.me @100.100.100.100Follow Tailscale if the query times out or returns no records.
Step 3: Add the repository
Section titled “Step 3: Add the repository”The repo is public, so HTTPS is enough.
argocd repo add https://github.com/nsudhanva/homelab.gitOpen ArgoCD, go to Settings, then Repositories, then Connect Repo. Use the HTTPS URL.
Step 4: Verify ArgoCD can see the repo
Section titled “Step 4: Verify ArgoCD can see the repo”argocd repo listYou should see https://github.com/nsudhanva/homelab.git listed as a repository.