How to deploy different modules on different node pools and make "Load Balancer" to specific node pool?


My project has 3 modules: WEB, API and ServerSockets. I must create a cluster with 3 kubernetes node pools and deploy each module to a node pool.

  1. How to deploy to each node pool?
  2. How to make requests/connections for each module forward to the correct node pool?

Who knows and can help me will be of great help!

And if you have any architectural suggestions, you will also be welcome.


Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you, Conrad!

Hi, you can add a nodeSelector to a Deployment resource:

One can also use Taints and Tolerations and more information can be found in the docs:

Good luck and all the best.