I'm considering whether using Kubernetes for my monolithic application is excessive. I need a solution that allows for scalability and minimal downtime since we're self-hosting. However, I'm wondering if Kubernetes is really necessary for our setup or if Docker Compose can meet our needs adequately.
5 Answers
Running a monolith on Kubernetes is definitely possible, but you really need to assess if your application is suited for it. For example, if it has background jobs, can it handle multiple instances without issues? Also, think about what parts could be pulled out to run independently. It’s important to find the right solution rather than just jumping into Kubernetes because it's trendy. Take your time to evaluate.
Before committing to Kubernetes, consider what you're actually expecting from it. If your app is not designed to scale outwards effectively, using Kubernetes for that might lead to more trouble than it's worth. It’s more suited for applications that can scale horizontally, so ensure your app is cluster-aware.
Kubernetes might be overkill for a monolith, especially if it acts like a singleton. It's really designed for container management across a large number of VMs. You might not gain much from it, and managing containers can sometimes get complex without significant benefits compared to simpler setups like Docker Compose.
Yeah, for that I was thinking Docker Compose might be better.
Setting up Kubernetes can be a huge undertaking, especially if you're only managing a single app. For fewer than 50 applications, it’s probably overkill. If resource management isn't demanding, a simple VM might be the best route. Kubernetes shines when you need to manage multiple containers at scale.
Using Kubernetes for a monolithic app can have advantages like automatic and seamless deployments, but just be aware of your app’s limitations. If it requires stateful data, you’ll have to handle that carefully. Otherwise, if you can separate components effectively, it could work well. I suggest trying Docker first to see how it goes before making the transition to Kubernetes.
Thanks for sharing your experience. I appreciate the perspective!

Thanks, this seems like it needs more thought.