Home > Net >  Autoscaling microservice in Kubernetes
Autoscaling microservice in Kubernetes

Time:03-26

I want to create something similar with this:

enter image description here

Basically I have a microservice and I want to scale the instances of it, but to use the same MongoDB container. These containers should be connected to a load balancer. How can I achieve this using Kubernetes?

CodePudding user response:

You can use k8s HorizontalPodAutoscaler to scale out your microservice as the demand goes up. When all of your nodes are filled up with microservices, you use cluster autoscaler to scale out your node so more microservices can come online.

  • Related