I have a lot of jobs in kubernetes that have to be exposed, so each ConfigMap has a NodePort. Instead of hardcoding a NodePort to each job I decided to look if Helm charts may help the code be more flexible.
The question: Is it possible to assign a NodePort to a job, depending on how many of them are deployed before? E.g: first job runs with ports 32001, 32002, I apply the second one and ports 32003, 32004 get assigned to it.