So do people containerize databases in production these days? I thought a couple of years ago DBs were the classic example of applications that don't belong in containers.
Services should be decoupled from OS distro dependencies as much as possible, otherwise you will be bitten at an unexpected moment (e.g. upgrading your distro packages) by some problem like this https://wiki.postgresql.org/wiki/Locale_data_changes
This can be solved by building statically (or using something like Nix) or by at least using containers.
I do, but I take a very cautious approach. I run a custom image with PostgreSQL and Patroni on Kubernetes, no operator, each replica has it's own StatefulSet tied to a specific node. There is very little automation, but it still better than running PostgreSQL outside of Kubernetes. I get the benefit of simplified monitoring, log handling, request routing, while still having very static resource assignments.
5 comments
[ 4.8 ms ] story [ 20.4 ms ] threadFuck them
This can be solved by building statically (or using something like Nix) or by at least using containers.