Is multisite a valid use case for Kubernetes?
I’m very new to Kubernetes. I’m pretty familiar with Docker though, which is why I’m interested in giving this a shot. I love the ease of deploying apps with Docker. I don’t know how many hours of manual labor it has saved me at this point. Now I have a situation where I want to deploy a bunch of apps to a server. I’m curious as to what the best approach would be. Here’s what I want to achieve in a nutshell:
I want to start off with one server that will host multiple Django sites for clients. These Django sites will basically be backoffice applications that will get only be visited by my clients themselves to store information. This information will be read out through an API, and will be turned into pure HTML, CSS, and JS, that I will host somewhere else as a static site. So these backoffice apps will basically serve as static site generators with a fancy Django-powered backend. The amount of traffic each of these backoffices will get will be very small. To use my resources efficiently, I want to fit as many of these ‘backoffice’ apps as I can in as little server space as I can. Unfortunately, creating one application that will serve all users is not an option. So for now they’re going to have to be different Django apps.
I know I can deploy multiple Django sites on one droplet, but I’d really like to use containers for this. It makes the process that much easier to manage. My question is, would managing these tiny 'backoffice’ sites be a valid use case for Kubernetes? Would it help me avoid the hassle of having to set up a bunch of sites on a droplet manually, and would it help me use my resources efficiently? Or should I perhaps use regular Docker containers without Kubernetes? Or is my idea of achieving this using containers just ridiculous in the first place?
For the types of clients I have in mind for this service, I imagine I could fit a hundred clients onto one small droplet without them getting in each other’s way, as only one or two will be active at any given time.
I’m curious if it’s worth checking out out Kubernetes (or Docker) to manage these microsites, or if I’m better off just biting the bullet and setting up some flow to deploy these sites to the droplet individually.
Any advice is more than welcome!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×