How can I find all nodeports are free in a kubernetes cluster that can be used by any service?
Currently I'm using netstat -pant | grep <12345>
Is there any better command?
How can I find all nodeports are free in a kubernetes cluster that can be used by any service?
Currently I'm using netstat -pant | grep <12345>
Is there any better command?
That's the way how nodeport works. It is same as you can't run two web services on same port of 80 on same server.
You have to adjust the port in your real environment.
Otherwise, let kubernetes to manage