<p><strong>Can DNS point to specific port?</strong></p>

<hr>

<h2><strong>how to setup separate DNS endpoints for all different Apps running in Kubernetes Cluster???</strong>(AWS/GCP/AZURE)</h2>

<h2>For example:</h2>

<p>app1  service running on Nodeport: 30001</p>

<p>app2  service  running on Nodeport: 30002</p>

<hr>

<p>app1 endpoint DNS should be <strong>www.app1.com</strong></p>

<p>app2 endpoint DNS should be <strong>www.app2.com</strong></p>

Anuraag P
<p>You need use LoadBalancer type service instead of NodePort type.But creating a new load balancer for each and every app is costly so alternatively you can use <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">kubernetes ingress</a>. There are different ingress controllers such as <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">nginx</a> which implements the ingress API.</p>
