Re:Writing Dockerfiles for Node.js Web Apps
by alberteinstein on Thursday February 08, 2018 @05:24AM
(#16331283)
Kubernetes will definitely be an overkill if you run only one container. But, if your application follows microservice architecture and have multiple containers, Kubernetes is the best solution to run them.
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/
It would be interesting to know how this works under the hood though, is this just built on top of docker swarm load balancing?