TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PostgreSQL 14 on Kubernetes

168 点作者 plaur782超过 3 年前

11 条评论

brainwipe超过 3 年前
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.
leetrout超过 3 年前
Why would i want to run my database in k8s?
评论 #28771840 未加载
评论 #28769725 未加载
评论 #28769410 未加载
评论 #28771700 未加载
评论 #28769916 未加载
评论 #28769106 未加载
pixel_tracing超过 3 年前
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 未加载
vfiftyfive超过 3 年前
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 未加载
strzibny超过 3 年前
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>.
ltbarcly3超过 3 年前
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.
whazor超过 3 年前
I would like to see a comparison between this operator and the one from Zalando.
评论 #28770336 未加载
评论 #28770497 未加载
评论 #28770240 未加载
mpwala超过 3 年前
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 未加载
rossmohax超过 3 年前
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 未加载
aliswe超过 3 年前
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 .. ?
mikesabbagh超过 3 年前
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 未加载