<p>I am testing out a kubernetes cluster on my Windows machine using minikube. I installed minikube on Windows via chocolate and I have a script to access it from wsl2. I also have installed kubectl on wsl2.</p>
<pre><code>#!/bin/sh
/mnt/c/ProgramData/chocolatey/bin/minikube.exe $@
</code></pre>
<p>I was able to create deployments for my client and server and I can view my pods using <code>kubectl get pods</code></p>
<pre><code>$kubectl get pods

NAME                      READY   STATUS    RESTARTS   AGE
client-chart-deployment   1/1     Running   0          35m
server-chart-deployment   1/1     Running   0          35m
</code></pre>
<p>Since I am using a LoadBalancer service for my client and server I used <code>minikube tunnel</code> to connect to them.</p>
<pre><code>$minikube tunnel

�🏃  Starting tunnel for service server-chart-service
�🏃  Starting tunnel for service client-chart-service
</code></pre>
<p>I was also able to create services for both deployments and I can view those with <code>kubectl get serviecs</code></p>
<pre><code>$kubectl get services

NAME                   TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
client-chart-service   LoadBalancer   10.99.57.135    127.0.0.1     3000:30741/TCP   37m
server-chart-service   LoadBalancer   10.109.66.209   127.0.0.1     4000:31539/TCP   36m
kubernetes             ClusterIP      10.96.0.1       &lt;none&gt;        443/TCP          4d21h
</code></pre>
<p>I can also view everything from <code>minikube dashboard</code> and <code>minikube service list</code> gives me the following</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>NAMESPACE</th>
<th>NAME</th>
<th>TARGET PORT</th>
<th>URL</th>
</tr>
</thead>
<tbody>
<tr>
<td>default</td>
<td>server-chart-service</td>
<td>4000</td>
<td><a href="http://192.168.49.2:30963" rel="nofollow noreferrer">http://192.168.49.2:30963</a></td>
</tr>
<tr>
<td>default</td>
<td>client-chart-service</td>
<td>3000</td>
<td><a href="http://192.168.49.2:31381" rel="nofollow noreferrer">http://192.168.49.2:31381</a></td>
</tr>
<tr>
<td>default</td>
<td>kubernetes</td>
<td>No node port</td>
<td></td>
</tr>
<tr>
<td>kube-system</td>
<td>kube-dns</td>
<td>No node port</td>
<td></td>
</tr>
<tr>
<td>kubernetes-dashboard</td>
<td>dashboard-metrics-scraper</td>
<td>No node port</td>
<td></td>
</tr>
<tr>
<td>kubernetes-dashboard</td>
<td>kubernetes-dashboard</td>
<td>No node port</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<p>However, after everything is set up and running, I am still unable to connect to my client or server services at <a href="http://127.0.0.1:3000" rel="nofollow noreferrer">http://127.0.0.1:3000</a> and <a href="http://127.0.0.1:4000" rel="nofollow noreferrer">http://127.0.0.1:4000</a> through my browser and through curl.</p>
<p>I also tried the <a href="http://192.168.49.2:30963" rel="nofollow noreferrer">http://192.168.49.2:30963</a> and <a href="http://192.168.49.2:31381" rel="nofollow noreferrer">http://192.168.49.2:31381</a> and those do not work as well.</p>
<p>Does anyone have an idea about what is going on here?</p>

Riley Conrardy
<p>I think it's an issue in WSL2. Check these two GH Issues:</p>
<ul>
<li><a href="https://github.com/microsoft/WSL/issues/4199" rel="nofollow noreferrer">https://github.com/microsoft/WSL/issues/4199</a></li>
<li><a href="https://github.com/microsoft/WSL/issues/5298" rel="nofollow noreferrer">https://github.com/microsoft/WSL/issues/5298</a></li>
</ul>
