title: Kubernetes Ingress servicePort alternative?
body: <p>Ingress example from <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/</a> shows that in order to specify ingress bancked, we have to specify servicePort and serviceName, for example:</p>
  
  <pre><code>backend:
        serviceName: test
        servicePort: 80
  </code></pre>
  
  <p>I want to create services with random ports and avoid specifying them in the ingress definition. Are there any alternatives to servicePort? Maybe use port name or targetPort that are assigned in the service?</p>