<p>When I try to create ingress controller on my local machine(mac) using DockerDesktop, I get this error:</p>
<pre><code>error when creating ingress/default.yaml&quot;: ingresses.networking.k8s.io &quot;default-test&quot; is forbidden: Internal error occurred: 2 default IngressClasses were found, only 1 allowed
</code></pre>
<p>And another error that I faced today is when I create NodePort service and exposed it on port 30200 for example, and when I try to connect to localhost:30200, I get this error:</p>
<pre><code>curl: (7) Failed to connect to localhost port 30036: Connection refused
</code></pre>
<p>The only way to connect to the service is using port forwarding.</p>

Petar Petrov
<p>It seems like you have multiple default ingress classes. Check it out by running.</p>
<pre><code>$kubectl get ingressclass
</code></pre>
<p>If you do not specify a particular ingress class when creating your ingress controller, it will fall back on the default ingress class. However, as you have two default ingress classes, it fails. For more info please refer to the <a href="https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/#using-multiple-ingress-controllers" rel="nofollow noreferrer">docs</a>. You may want to explicitly set a ingress class for your ingress controller or make your cluster having only a single default ingress class.</p>
