<p>I know how can i use one ingress for one domain but if i have more than one domain like below what should ido?
how should i handle DNS for ingress?<strong>I do not want to write domain in ingress.yml</strong><a href="https://i.stack.imgur.com/n4cJB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n4cJB.png" alt="enter image description here"></a></p>

yasin lachini
<p><code>Ingress</code> element on diagram is <code>ingress-controller</code>, but nobody forbids creating individual Ingress resources for each route.</p>

<p>As alternative solution, you can expose service as LoadBalancer and configure external DNS service to route traffic on Kubernetes LB Service. Check <a href="https://github.com/kubernetes-incubator/external-dns" rel="nofollow noreferrer">ExternalDNS</a> project for more information.</p>

<p>MetalLB and kube-router also could be useful for Bare-Metal/On-Premise K8s setup.</p>

<p>On my opinion, Helm/Ksonnet/Kustomize will help you with Ingress resource management too.</p>
