<p>I have a service for which i dont want to use autoscaling, so i created a copy of it and now i want to have it behind an internal LB using nginx ingress, one of them will be always active and other one will be passive which can be get through probes status, ingress is as below</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: appcj-ingress
spec:  
  ingressClassName: nginx
  rules:
  - host: &quot;{{ .Values.ingress.appcjudomain }}&quot;
    http:
      paths:
        - pathType: Prefix
          path: &quot;/&quot;
          backend:
            service:
              name: {{ .Values.Name }}-appcjuengineprihttp
              port:
                number: 81
            service:
              name: {{ .Values.Name }}-appcjuenginesechttp
              port:
                number: 81

</code></pre>
<p>This is more like a traditional load balancer, like  having multiple servers behind a loadbalancer, having multiple backend services for same host, is it possible?</p>

windowws
<p>Kubernetes Ingress does NOT allow you to do this.</p>
<p>You must necessarily distinguish by host or by path.</p>
<p>The only thing you could do is implement a structure like this: <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#simple-fanout" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/#simple-fanout</a></p>
<p>Take a look here: <a href="https://stackoverflow.com/questions/46373616/how-do-i-map-multiple-services-to-one-kubernetes-ingress-path">How do I map multiple services to one Kubernetes Ingress path?</a></p>
<p>Otherwise consider replacing the Ingress Kubernetes with a level 7 Load Balancer.</p>
