<p>I'm trying to run a VueJS app on my local machine with <code>minikube</code> and <code>Kubernetes</code>.</p>
<p>Now,</p>
<ol>
<li>I applied the YAML file.</li>
<li>Added the IP address of the ingress to <code>/etc/hosts</code> on my <code>MacOS (M1)</code>.</li>
</ol>
<p>neu.com does not load, nor does the IP address of the ingress controller.</p>
<p><strong>What I've tried</strong></p>
<ol>
<li>Tried running the service with a nodeport (it loads up fine)</li>
<li>Removing everything, and doing the whole thing from start</li>
</ol>
<p>(minikube addon ingress is switched on)</p>
<p>Here is the version info for all the tools I'm using.</p>
<pre><code>kubectl version --short

Client Version: v1.24.3
Kustomize Version: v4.5.4
Server Version: v1.24.1
-------------------------
minikube version
minikube version: v1.26.0
commit: f4b412861bb746be73053c9f6d2895f12cf78565
</code></pre>
<p>And this is the YAML file.</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: cleo
  labels:
    app: cleo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cleo
  template:
    metadata:
      labels:
        app: cleo
    spec:
      containers:
      - name: cleo
        image: image-name-of-my-vuejs-app 
        ports:
        - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
  name: cleo-service
spec:
  selector:
    app: cleo
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: cleo-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
  - host: neu.com
    http:
      paths:
      - path: /
        pathType: Exact
        backend:
          service:
            name: cleo-service
            port: 
              number: 80
</code></pre>
<p>The service and ingress are running:</p>
<p><a href="https://i.stack.imgur.com/dlv7m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dlv7m.png" alt="enter image description here" /></a></p>
<p>Can somebody see what the problem is?</p>

jaisonDavis
<p>The direct access only works on Linux, the docker network is not accessible on macOS or on Windows</p>
<p><a href="https://docs.docker.com/desktop/mac/networking/#known-limitations-use-cases-and-workarounds" rel="nofollow noreferrer">https://docs.docker.com/desktop/mac/networking/#known-limitations-use-cases-and-workarounds</a></p>
<p>Reference: <a href="https://github.com/kubernetes/minikube/issues/13951" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/issues/13951</a></p>
