https://pulumi.com logo
#kubernetes
Title
# kubernetes
b

bitter-father-26598

12/06/2023, 5:01 AM
Does anyone host their Databases in their own kubernetes cluster? How is your experience?
v

victorious-architect-78054

12/06/2023, 3:32 PM
I would say it's painful 😄
b

bitter-father-26598

12/06/2023, 3:33 PM
So not recommended for production?
v

victorious-architect-78054

12/06/2023, 3:39 PM
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

bitter-father-26598

12/06/2023, 3:43 PM
Yeah that much is obvious. I'm interested in hearing about folks specific in-cluster DB war stories.
v

victorious-architect-78054

12/06/2023, 3:53 PM
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

billowy-army-68599

12/06/2023, 4:41 PM
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

bitter-father-26598

12/06/2023, 6:34 PM
@billowy-army-68599 I’m using digitalocean. A kubernetes native database aye? Does postgresql qualify as one?
b

billowy-army-68599

12/06/2023, 6:35 PM
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

bitter-father-26598

12/07/2023, 4:08 PM
@billowy-army-68599 do you remember a particular weird battle story you encountered when using one of these operators for a DB?
b

billowy-army-68599

12/07/2023, 4:18 PM
not offhand, no
plenty here though https://k8s.af/