简体   繁体   English

使用 kubernetes 通过队列动态创建 Pod

[英]Dynamically creating pods with kubernetes by a queue

I have a service and it can process only one request at a time.我有一项服务,它一次只能处理一个请求。 I deployed service with kubernetes.我用 kubernetes 部署了服务。

I want this: Every request will be put in a RabbitMQ queue.我想要这样:每个请求都将放入 RabbitMQ 队列中。 When the top request in the queue is sent, a new pod will create.当队列中的顶部请求被发送时,将创建一个新的 pod。 The pod will be destroyed after the service at docker container ends.在 docker 容器的服务结束后,pod 将被销毁。 A new pod will open for the new request.将为新请求打开一个新 pod。 Also, there will be a limit for pod count.此外,pod 数量也会有限制。 New request in queue will be held when the limit is reached.当达到限制时,队列中的新请求将被保留。

Can you guide me for this use case???你能指导我这个用例吗???

You can use knative .您可以使用knative Knative is a Serverless framework which automatically create pod when there is an event . Knative 是一个 Serverless 框架,当有事件发生时它会自动创建 pod。 Rabbitmq as an event source is in progress. Rabbitmq作为事件源正在开发中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM