r/linuxadmin • u/man__i__love__frogs • Oct 21 '25
Self hosting containers - does it require a principal of redundancy for all infrastructure?
Hey there, I'm a Windows/M365 admin, but as part of an Azure migration to go 'serverless', we've put some apps into Azure Container Apps, and I guess I have....seen the light.
Just for example I'm running a SFTPGO on a container app, that points to a postgresql db for config, and a storage location for the ftp data. These have redundancy themselves, but that is through Azure.
It got me thinking if I wanted to build an on prem environment with containerization in mind. Is the principal generally that everything should be designed with redundancy/failover in mind?
I am thinking of maintenance like system updates on the VMs - if I need a postgresql should it be designed with HA/load balancer kind of thing, so that both containers and the db can be drained and the host vms updated/restarted without downtime?
16
u/crackerjam Oct 21 '25
Containers are just a fancy way to run isolated processes on a server. If you want a reliable postgresql service you need to design it the same way you would if you were just installing it straight into the VM, as in with multiple VMs hosting it.
6
u/crash90 Oct 21 '25
To use containers onprem and solve most of the problems you're describing most people use Kubernetes. There are other approaches, but thats the most popular. Kube onprem is great. Not without it's problems and tradeoffs but it does solve most of this kind of stuff in a straightforward way once you understand how it works.
A good place to start for understanding how people think about this collection of problems, and what philosphy Kubernetes is actually implementing is to check out 12factor. Most of the architecture choices can be explained by that document.
https://12factor.net/
1
u/Academic-Gate-5535 Oct 24 '25
I hate the term "serverless", as it's still a fucking server. It's just not yours.
But running containers is even further away from being serverless.
Serverless is running python code etc natively, whereas Azure handle the daemon that runs it for you. Running a container is containerisation.
/rant
2
u/tecedu Oct 21 '25
You can do it two ways, either do kubernetes and make your life easier.
Or if you want something like HA postgres in container the difficult part would be multiple linux instances running their own container.
It comes down why you need redundancy, I only prefer kubernetes if you need multiple replicas active, if you fit onto single nodes and you have little containers a big fat VM with podman works as well
1
u/Superb_Raccoon Oct 26 '25
Want to find out?
Get a machine with at least 128gb of ram.
Install podman desktop. Deploy a kubernetes cluster with the push of a button. Install ceph/rook if you want a distributed resilient storage system.
Install postgress, metallib or other ingress proxy, try it all out.
Sure, it's all one machine, but now you know how to install it on a cluster of multiple machines for resilience.