TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PostgreSQL 14 on Kubernetes

168 pointsby plaur782over 3 years ago

11 comments

brainwipeover 3 years ago
This is an excellent, well explained article. For most of the small companies I work for, database hosting is treated like a utility so we end up using RDS etc. The benefit of arranging your own k8 database setup is outweighed by the cost of maintenance. On one hand it's nice that it's one less thing to worry about, on the other I miss this kind of deep nerdery.
leetroutover 3 years ago
Why would i want to run my database in k8s?
评论 #28771840 未加载
评论 #28769725 未加载
评论 #28769410 未加载
评论 #28771700 未加载
评论 #28769916 未加载
评论 #28769106 未加载
pixel_tracingover 3 years ago
I think when I see tutorials like this all I see is the large bill I’ll be receiving $$$, can articles like these include costs??
评论 #28769520 未加载
vfiftyfiveover 3 years ago
The truth is Kubernetes already has all the primitives to run database or any other stateful applications. What is challenging is how to make it reliable, performant and scalable for this kind of apps. If you manage to do it properly, then it will be far less costly and manageable than any DBaaS out there. There are 2 dimensions to the problem: 1) How to easily deploy and operate a "production" DB in K8S. As the toolset evolves, we've seen a lot of different operators and customization tools to facilitate this. Today it is rather trivial to write the manifests that will deploy a Redis cluster fit to your needs. 2) You need a REALLY good kubernetes-native data service layer that guarantees fast failover, sync replication and performance for your persistent volumes. StatefulSets alone won't really help in case of node failure...and don't even think about using NFS. Ondat/StorageOS are leaders in that space, it's really simple to deploy, so you can give it a try in less than 5min. Once you've made sure that your stateful configuration is right and that the network/data layer is reliable, then you can leverage all the visibility tools native to K8S (ELK/EFK, Prometheus, etc). Your stateful apps will be ready for CI and other DevOps integration using the K8S tools (Tekton, ArgoCD etc). This will make your devs happy as infra is not the blocker anymore...
评论 #28773274 未加载
评论 #28772878 未加载
strzibnyover 3 years ago
While I am happy for the progress people make in bringing databases to container orchestrators, I don&#x27;t see myself going off the dedicated virtual machine for the database. I find it easier&#x2F;safer to run it this way.<p>Shameless plug: if you want to start running your own PostgreSQL with SSL, SELinux, automatic system updates, attached storage, and more... I have a simple demo as part of <a href="https:&#x2F;&#x2F;deploymentfromscratch.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;deploymentfromscratch.com&#x2F;</a>.
ltbarcly3over 3 years ago
Running anything which depends on disk cache &#x27;working&#x27; should not be run in a shared environment, unless your application can run arbitrarily slowly.<p>If I understand how it works, allocating memory to a container does not allocate memory for caching of data, and any IO done by any container can eject data from the cache, which means any IO intensive process will step on any other.
whazorover 3 years ago
I would like to see a comparison between this operator and the one from Zalando.
评论 #28770336 未加载
评论 #28770497 未加载
评论 #28770240 未加载
mpwalaover 3 years ago
I always thought it&#x27;s better to host distributed database, like Cockroachdb and Yugabytedb, in multiple kubernetes clusters. Just in case one of the cluster goes down.
评论 #28769393 未加载
rossmohaxover 3 years ago
Best way to run database is in static pods. You&#x27;ll get all the benefit of kubernetes ecosystem (monitoring, logs, inventory, access control) without any drawbacks.
评论 #28770621 未加载
alisweover 3 years ago
what&#x27;s the minimum resource requirements for a minimal 1 micro-sized table, and very low traffic? Is it in the magnitude of 100s of MB and tens of a vcore ? or .. ?
mikesabbaghover 3 years ago
cant think of a scenario where you need to query multiple databases in same query! Nice demo, but deploying it all in a cluster is distracting. Maybe do your next demo with docker-compose!
评论 #28769825 未加载