简体   繁体   English

在 Kubernetes 中使用 Gunicorn 在 Nginx 上运行 Django 是个好主意吗?

[英]Running Django with Gunicorn over Nginx in Kubernetes is a good idea?

I created Django site and expecting a lot of processing on my site.我创建了 Django 站点,并期望在我的站点上进行大量处理。 I'm running Nginx server with Gunicorn as explained in this tutorial教程中所述,我正在使用Gunicorn运行Nginx服务器

I would like to make something scalable to be able to raise processing power on my site.我想做一些scalable的东西,以便能够提高我网站的处理能力。 I have a simple question.我有一个简单的问题。 Is it possible to move this severs-lump into kubernetes ?是否可以将此severs-lump移入kubernetes And if yes, is it a good idea?如果是,这是个好主意吗? Or should I use nginx with uWSGI ?或者我应该将nginxuWSGI一起使用?

Yes, it is possible to move servers-lamp into Kubernetes.是的,可以将servers-lamp移动到 Kubernetes。

Yes, it is a good idea however it depends on you and your organisation's policies.是的,这是一个好主意,但这取决于您和您所在组织的政策。

In Kubernetes, you can use Nginx ingress controller and run Gunicorn, uWSGI.在 Kubernetes 中,您可以使用 Nginx 入口 controller 并运行 Gunicorn、uWSGI。 We are running a flask with Gunicorn on K8s along with an Ingress controller so far it's working well.我们在 K8s 上运行带有 Gunicorn 的 flask 以及 Ingress controller 到目前为止它运行良好。

You can refer to this article also: https://medium.com/google-cloud/a-guide-to-deploy-flask-app-on-google-kubernetes-engine-bfbbee5c6fb您也可以参考这篇文章: https://medium.com/google-cloud/a-guide-to-deploy-flask-app-on-google-kubernetes-engine-bfbbee5c6fb

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

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