简体   繁体   中英

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. I'm running Nginx server with Gunicorn as explained in this tutorial

I would like to make something scalable to be able to raise processing power on my site. I have a simple question. Is it possible to move this severs-lump into kubernetes ? And if yes, is it a good idea? Or should I use nginx with uWSGI ?

Yes, it is possible to move servers-lamp into 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. We are running a flask with Gunicorn on K8s along with an Ingress controller so far it's working well.

You can refer to this article also: https://medium.com/google-cloud/a-guide-to-deploy-flask-app-on-google-kubernetes-engine-bfbbee5c6fb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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