简体   繁体   English

Kubernetes 上的 postgres 集群中的多个数据库?

[英]Multiple Database in a postgres cluster on Kubernetes?

Is it possible to have multiple databse in a cluster with Crunchydata (postgres)?是否可以在带有 Crunchydata (postgres) 的集群中拥有多个数据库? When I create a cluster with "pgo create cluster" command I can specify only one database.当我使用“pgo create cluster”命令创建集群时,我只能指定一个数据库。

 -d, --database string                       If specified, sets the name of the initial database that is created for the user. Defaults to the value set in the PostgreSQL Operator configuration, or if that is not present, the name of the cluster

But I need multiple database per cluster, and I can't find any official way to create them.但是我每个集群需要多个数据库,我找不到任何官方的方法来创建它们。

Another question: How can I find the "superuser" username and password to login to PGOAmin Web?另一个问题:如何找到登录PGOAmin Web的“超级用户”用户名和密码?

Thanks a lot.非常感谢。

This could be useful, however it stated:这可能很有用,但它指出:

"It may make more sense to have each of your databases in its own cluster if you want to have them spread out over your Kubernetes topology." “如果您想让它们分布在您的 Kubernetes 拓扑中,将每个数据库放在自己的集群中可能更有意义。”

https://github.com/CrunchyData/postgres-operator/issues/2655https://github.com/CrunchyData/postgres-operator/issues/2655

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM