Running multiple instances of the same process on each node

2/28/2019

I have executable which I need to run 10 processes of on each node and each of those processes should be exposed to public on their own port. So, I create container with this executable. Then, I guess I need to create Service with type NodePort and Deployment for it. However, I'm not sure how to make it so that each node will run exactly 10 of them (and there are many nodes too) and how to make it so that each Pod/Container/Process will be exposed on their own port.

Also, process inside contrainer should somehow be able to know on which port it's exposed.

-- bobby
kubernetes

0 Answers