<p>How can we expose a range of ports in Kubernetes?<br>
My cloud application is using a range of ports when running(40000 ~42000).  </p>

<p>How do I specify a range of exposed ports in Kubernetes service yaml file?</p>

Valeri
<p>Kubernetes services currently do not support port ranges, see <a href="https://github.com/kubernetes/kubernetes/issues/23864" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/23864</a></p>
<p>Update: As of 2021 there is a kubernetes enhancement proposal field for this requirement: <a href="https://github.com/kubernetes/enhancements/pull/2611" rel="nofollow noreferrer">https://github.com/kubernetes/enhancements/pull/2611</a></p>
