Does anyone host their Databases in their own kube...
# kubernetes
b
Does anyone host their Databases in their own kubernetes cluster? How is your experience?
v
I would say it's painful 😄
b
So not recommended for production?
v
some people are doing it successfully in production, so the question is more do you want to manage the service yourself or not
really it's depend on your needs
image.png
b
Yeah that much is obvious. I'm interested in hearing about folks specific in-cluster DB war stories.
v
In a previous life, I fighted with redis sentinel setup (https://redis.io/docs/management/sentinel/#sentinel-as-a-distributed-system) over k8s, I was never be able to make the failover working properly
b
before I worked at Pulumi, I ran a large Kubernetes platform that used Vitess on Kubernetes. I never experienced any data loss, but the management overhead pushed us to use RDS instead and we never looked back. What cloud provider are you using @bitter-father-26598?
my recommendation is that if you go down this path, don’t use just a standard k8s deployment and hope for the best. Use a Kubernetes native database with an operator like vitess
b
@billowy-army-68599 I’m using digitalocean. A kubernetes native database aye? Does postgresql qualify as one?
b
Not on its own, if you use the postgres operator or something like https://cloudnative-pg.io/
but honestlu I’d just use the managed digitalocean service, it’ll save you a lot of time and effort
b
@billowy-army-68599 do you remember a particular weird battle story you encountered when using one of these operators for a DB?
b
not offhand, no
plenty here though https://k8s.af/