4 ms·
As someone who's been eyeing Kubernetes as a learning experience, that actually is really disheartening to hear. If you're being forced to manage your database
by moreira 4y ago
As someone who's been eyeing Kubernetes as a learning experience, that actually is really disheartening to hear. If you're being forced to manage your database outside of Kubernetes, what are you using Kubernetes for? Running your web/worker servers?
- anchochilis 4y agoMy mid-sized shop uses managed offerings for MySQL and Postgres but we run several stateful workloads, including ElasticSearch and MongoDB, in GKE. I personally haven't experienced the issues the OP is describing. It might be that StatefulSets and PVCs are more stable now then when OP tried them. Of course using managed/hosted K8s makes a big difference.
- openplatypus 4y agoWe use managed K8s. And we dropped StatefulSet maybe 4 months ago. There might have been a way to support our use case better. But this was managed service and we couldn't easily tweak every settings. But also, we didn't want to. Our goal of using Kubernetes is to make difficult stuff easy. Not to make easy stuff difficult. And in our skillset and capacity moving stateful services outside K8s was easier, cheaper and more reliable.
- deleted 4y ago[deleted]
- openplatypus 4y agoMicroservices, automations, APIs. K8s is great way to easily deploy and scale services. As we leverage Kafka, a lot of applications fallback on Topics and KTables for storage. Kubernetes with jobs, cron jobs, operators, secrets etc is effectively an Operating System for the cloud. Definitely worth the investment to learn and practice.
- ohthehugemanate 4y agoif you're interested in it as a learning experience, this is a great setup. start by putting the stateless parts of your application into k8s, to get the normal flow. then try and move your database in . stateful workloads are tricky and maybe impossible to really do well in k8s, but there are a lot of options that almost get you there, and maybe get you to "good enough." and the learning you will get is fantastic for understanding lots of core k8s capabilities.
- waynesonfire 4y agostop asking questions ... here have some of this koolaid. it's great. it's not complex jedi hand wave and it works for me.