<p>I can't make my ingress work in local <code>docker-desktop</code></p>

<p>I made an <code>helm create my-project-helm</code> like everybody</p>

<p>then I do changes in <code>./my-project-helm/values.yaml</code> I just show you the most interesting part (about ingress)</p>

<pre><code>...

replicaCount: 3

image:
  repository: localhost:5000/my-project-helm
  tag: latest
  pullPolicy: IfNotPresent

...

service:
  type: ClusterIP
  port: 80

ingress:
  enabled: true
  annotations: {
    kubernetes.io/ingress.class: nginx
  }
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: chart-example.local
      paths: [/]

...
</code></pre>

<p>I install this helm <code>helm upgrade --install my-project-helm ./my-project-helm</code></p>

<p>I install nginx <code>helm upgrade --install nginx-ingress stable/nginx-ingress</code></p>

<p>I am gonna check my ingress with <code>kubectl describe ingress my-project-helm</code></p>

<pre><code>Name:             my-project-helm
Namespace:        default
Address:          
Default backend:  default-http-backend:80 (&lt;none&gt;)
Rules:
  Host                 Path  Backends
  ----                 ----  --------
  chart-example.local  /     my-project-helm:80 (10.1.0.71:80,10.1.0.72:80,10.1.0.73:80)
Annotations:
  kubernetes.io/ingress.class:  nginx
Events:
  Type    Reason  Age   From                      Message
  ----    ------  ----  ----                      -------
  Normal  CREATE  14m   nginx-ingress-controller  Ingress default/my-project-helm
  Normal  UPDATE  13m   nginx-ingress-controller  Ingress default/my-project-helm
</code></pre>

<p>Everything seems so wonderful. </p>

<p>I make a <code>curl chart-example.local</code> nothing happens <code>curl: (6) Could not resolve host: chart-example.local</code></p>

<p>Does anyone have a clue?</p>

Thomas Aumaitre
<p>By default it should add the <code>Kubernetes master</code> domain in your /etc/hosts</p>

<p>Check it with <code>kubectl cluster-info</code></p>

<p>So just use the default domain which is in my case <code>kubernetes.docker.internal</code> instead of <code>chart-example.local</code>.</p>

<p>And yes it must point to the loadbalancer external IP of nginx which is localhost by default ;)</p>
