News for hackers. Stuff that matters.
Re:Thou shalt not run a database inside a container by ghshephard on Wednesday January 13, 2021 @04:49PM (#25768396)
Once you containerize every part of your application stack, you can simplify support/deployment to a single model, and you get the advantages of everything that containerization has to offer - dynamic scaling, robust recovery, trivial application migration, etc... without having to build in special rules/processes for one-off elements. The database then become yet one more component in your environment that isn't treated any differently than any other component - with the possible exception of requesting that it be scheduled less ephemerally than other components.

I've seen it work in production for 3+ years - And I don't recall there ever being an issue with the databases being in a container - it's hard to imagine them being anywhere else.

Re:Thou shalt not run a database inside a container by postalrat on Wednesday January 13, 2021 @06:17PM (#25769377)
After reading that I start thinking everything would be better containerized. So why not run kubernetes nodes in containers?
Re:Thou shalt not run a database inside a container by predakanga on Wednesday January 13, 2021 @07:43PM (#25770189)
You can!

KinD[0] is a project to do just that, although production workloads are an explicit non-goal.

[0]: https://github.com/kubernetes-sigs/kind

Re:Thou shalt not run a database inside a container by rualca on Thursday January 14, 2021 @02:21AM (#25773221)
> So why not run kubernetes nodes in containers?

Plenty of usecases are already covered by that. Also, running containers in containers is also a thing.

It's containers all the way down.

Re:Thou shalt not run a database inside a container by adammck on Wednesday January 13, 2021 @07:51PM (#25770259)
Since the parent is running on GKE, they’re already doing that. Postgres in a (kube) container on a (GCE) VM in a (borg) container on a computer.