<p>For some task, i am following the below example to configure the HashiCorp Vault auto Auth agent with minikube.</p>
<pre><code>https://learn.hashicorp.com/tutorials/vault/agent-kubernetes?in=vault/app-integration
</code></pre>
<p>In the section “Determine the Vault address” step 3.
i am trying to execute the below curl command to check connectivity:</p>
<pre><code>curl http://192.168.1.1:8200/v1/sys/seal-status
</code></pre>
<p>and getting below error&quot;</p>
<pre><code>curl: (7) Failed to connect to 192.168.1.1 port 8200: Connection refused
</code></pre>
<p>While i check the connectivity between host machine(Windows10 and minikube route with gateway value of 0.0.0.0).</p>

Kunal Kumar
<p>You are facing this error might be due to you are running curl at windows 10 while your container running inside minikube.</p>
<p>You can do port-forward or you can use the bridge connection IP to connect with vault.</p>
<p>You can setup one extra pod <code>busybox</code> in minikube and use the curl from there so that it will connect to vault on same network, in minikube you can also talk over the <strong>service name</strong> instead of IP.</p>
<p>you can follow this guide and look for port-forwarding option also.</p>
<pre><code> kubectl port-forward vault-0 8200:8200
</code></pre>
<p>once port are forwarded to local you can <code>curl locahost:8200</code> instead of IP.</p>
<p><strong>Get vault service</strong> :</p>
<pre><code>kubectl get svc -n &lt;Namespace name&gt;
</code></pre>
<p><strong>Port forward to local machine</strong></p>
<pre><code> kubectl port-forward &lt;service name&gt; 8200:8200 -n &lt;Namespace name&gt;
</code></pre>
<p><strong>Curl localhost</strong></p>
<pre><code>curl localhost:8200/v1/sys/seal-status
</code></pre>
