Node.js · Senior · Question 58 of 75
Running Node.js in Kubernetes, should you use the cluster module inside each pod?
- 1Kubernetes requires
clusterfor health checks - ✓Correct answer: Usually not: run one process per pod and scale pods, so the orchestrator handles restarts, balancing and resource limits
- 3Yes, always, or Node.js uses only 10% of a core
Explanation
One process per container keeps metrics, memory limits and restarts simple. cluster still helps on a single VM without an orchestrator.