<p>My application is running within a pod container in a kubernetes cluster. Every time it is started in the container it allocates a random port. I would like to access my application from outside (from another pod or node for example) but since it allocates a random port I cannot create a serivce (NodePort or LoadBalancer) to map the application port to a specific port to be able to access it.</p>
<p>What are the options to handle this case in a kubernetes cluster?</p>

<p>Not supported, checkout the issue <a href="https://github.com/kubernetes/enhancements/pull/2611" rel="nofollow noreferrer">here</a>. Even with docker, if your range is overly broad, you can hit <a href="https://github.com/moby/moby/issues/11185" rel="nofollow noreferrer">issue</a> as well.</p>
