Home > Blockchain >  why do we use multiple pods in a kubernetes deployment
why do we use multiple pods in a kubernetes deployment

Time:01-07

basically i'm new to kubernetes environment

i don't know why we needd to create multiple ReplicaSet of a same pod in a deplyment

some of the documentation here https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/

CodePudding user response:

This is not anything special to kubernetes, the concept of scaling has been around much earlier, but before kubernetes (or any other orchestration tool), it was much harder to achieve. I still remember the way we used to deploy many instances of an application and load balance requests... it was a tiny little nightmare compare to modern tools that we have.

So the reasons to have many instances of the same application are (but not limited to): load balancing, high availability, better handling of request spikes, failover (in some sense), etc.

CodePudding user response:

You use multiple pods out of many reasons:

  • Split the load between more machines (cloud paradigm of many small instead of few bigs) which leads to:
  • Great scaling
  • Great redundancy The replica set is a solid way of doing it, as you tell Kubernetes what you want.
  •  Tags:  
  • Related