<p>I'd like to specify port when using NodePort, but how can I know which port is available on all nodes, I don't want to port conflicts. </p>

zjffdu
<p>Right approach is to let Kubernetes choose the <code>nodePort</code> automatically from the default allocated range(30000–32767). Don't include <code>nodePort</code> in your yaml.</p>
