Kubernetes 中的自动缩放微服务
I want to create something similar with this:
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 k8s HorizontalPodAutoscaler 来扩展您的随着需求的增加微服务。当所有节点都充满微服务时,您可以使用集群自动缩放器 扩展您的节点,以便更多的微服务可以上线。
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.