<p>I'm looking to set up a consul service mesh in my Kubernetes Cluster and need to enable ingress-gateway.   My plan is to run ingress-gateway as a ClusterIP Service and Kubernetes Ingress (Nginx ingress) to direct traffic to that ingress.  I've been going through the tutorials on Ingress Gateway on Consul.io and am confused by something.  The helm chart has a list of <code>gateways:</code> with a name.</p>
<ul>
<li><p>Does the name of the service built by the helm chart have to match the consul configuration for ingress (minus the prefix applied by helm)?</p>
</li>
<li><p>If it does not have to match can I set up multiple consul ingress gateways on the same port?</p>
</li>
</ul>
<p>Example:</p>
<pre><code>$ cat myingress.hcl
Kind = &quot;ingress-gateway&quot;
# does the following Name need to match kubernetes service
Name = &quot;ingress-gateway&quot;
Listeners = [
  Port = 8080
  ......
]

$ kubectl get services
NAME                          TYPE               CLUSTER-IP      EXTERNAL-IP   PORT(S) 
consul-ingress-gateway        ClusterIP          &lt;blah&gt;          &lt;blah&gt;        8080/TCP,8443/TCP
......
</code></pre>

Wanderer
<p>The <a href="https://www.consul.io/docs/k8s/helm#v-ingressgateways-gateways" rel="nofollow noreferrer"><code>Name</code></a> field in the configuration entry has to match the name of the service as registered in Consul. By default the Helm chart uses the name &quot;ingress-gateway&quot; (<a href="https://www.consul.io/docs/k8s/helm#v-ingressgateways-gateways-name" rel="nofollow noreferrer">https://www.consul.io/docs/k8s/helm#v-ingressgateways-gateways-name</a>).</p>
<p>You can customize this with the <code>name</code> field which must be defined for each ingress gateway listed under the <a href="https://www.consul.io/docs/k8s/helm#v-ingressgateways-gateways" rel="nofollow noreferrer"><code>ingressGateways.gateways</code></a> array in your Helm chart's values file. For example:</p>
<pre class="lang-yaml prettyprint-override"><code>---
ingressGateways:
  gateways:
    - name: ingress-gateway
      service: LoadBalancer
      ports:
        - 8080
    - name: nonprod-gateway
      service: LoadBalancer
      ports:
        - 9000
</code></pre>
