|
|
|
|
|
by rid
3052 days ago
|
|
Thanks! I think for our scenario it's a bit overkill as we're only running one container and pm2 seems a better fit for that. It would be interesting to know how this works under the hood though, is this just built on top of docker swarm load balancing? |
|
Kubernetes architecture is entirely different from that of Docker Swarm.
A Kubernetes Service object [1] can load balance traffic to various Kubernetes Pods (think containers) [2] as defined by it's " pod selectors". It can choose to direct traffic only to running containers.
[1] https://kubernetes.io/docs/concepts/services-networking/serv... [2] https://kubernetes.io/docs/concepts/workloads/pods/pod/