r/linuxadmin • • 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?

7 Upvotes

14 comments sorted by

View all comments

Show parent comment

5

u/GenuineGeek Oct 21 '25

Look into stateless vs stateful. Stateless is easily scalable, stateful requires some additional considerations. You can absolutely containerize an RDBMS like PostgreSQL, but it's is stateful, so you'll have to understand how it works in the background and plan accordingly for redundancy.

1

u/Academic-Gate-5535 Oct 24 '25

flashback I inherited a Hashicorp Vault deployment, of which the person who set it up clearly hadn't realised that containers are stateless by default.

So when we did a pull and rebuild to update it, et-viola, it's now an entirely new install!

Good job I'm not a moron and had a backup