<p>I saw some example where the Kubernetes cluster is installed with ingress controller and then the ingress class is added with annotations and host as below.</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 annotations:
    kubernetes.io/ingress.class: nginx

spec:
 rules:
   - host: testsvc.k8s.privatecloud.com
     http:
</code></pre>

<p>I am not sure which service is installed and which IP is configured with the DNS <strong>"k8s.privatecloud.com"</strong> so as to route requests?
How the DNS routing <strong>"k8s.privatecloud.com"</strong> routes requests to Kubernetes cluster? How the ingress to kubernetes bridging works?</p>

<p>Also, There could be many services configured with the hosts rule like,</p>

<pre><code>testsvc.k8s.privatecloud.com
testsvc1.k8s.privatecloud.com
testsvc2.k8s.privatecloud.com
</code></pre>

<p>How the subdomain routing works here when we hit the service testsvc.k8s.privatecloud.com or testsvc1.k8s.privatecloud.com ...</p>

<p>Thanks</p>

<p>In addition to @Matthew L Daniel answer.
The kubernetes Ingress works as a proxy between external network and your cluster. The behavior of the ingress is explained in the <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">object ingress</a>. For example: </p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test
  annotations:
    ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: foo.bar.com
    http:
      paths:
      - path: /foo
        backend:
          serviceName: s1
          servicePort: 80
      - path: /bar
        backend:
          serviceName: s2
          servicePort: 80
</code></pre>

<p>Above it`s explained how to route traffic between 2 backends s1 and s2. Ingress does not hold any information about services except its name and port, every time it needs more details it would need to be requested from the api-server. </p>
