<p>I have just set up a kubernetes cluster on bare metal using kubeadm, Flannel and MetalLB. Next step for me is to install ArgoCD.</p>
<p>I installed the ArgoCD yaml from the &quot;Getting Started&quot; page and logged in.</p>
<p>When adding my Git repositories ArgoCD gives me very weird error messages:
<a href="https://i.stack.imgur.com/xhlUm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xhlUm.png" alt="enter image description here" /></a>
The error message seems to suggest that ArgoCD for some reason is resolving github.com to my public IP address (I am not exposing SSH, therefore connection refused).</p>
<p>I can not find any reason why it would do this. When using https:// instead of SSH I get the same result, but on port 443.</p>
<p>I have put a dummy pod in the same namespace as ArgoCD and made some DNS queries. These queries resolved correctly.</p>
<p>What makes ArgoCD think that github.com resolves to my public IP address?</p>
<p>EDIT:</p>
<p>I have also checked for network policies in the argocd namespace and found no policy that was restricting egress.</p>
<p>I have had this working on clusters in the same network previously and have not changed my router firewall since then.</p>

Hannes Knutsson
<p>I solved my problem!</p>
<p>My /etc/resolv.conf had two lines that caused trouble:</p>
<pre><code>domain &lt;my domain&gt;
search &lt;my domain&gt;
</code></pre>
<p>These lines were put there as a step in the installation of my host machine's OS that I did not realize would affect me in this way. After removing these lines, everything is now working perfectly.</p>
<p>Multiple people told me to check resolv.conf, but I didn't realize what these two lines did until now.</p>
