重现问题的步骤
helm pull bitnami/postgresql
tar -xf postgresql-8.4.3.tgz && cd postgresql
- Update values-production.yaml with storageClass: "local-path", postgresqlPassword: root, postgresqlDatabase: test
helm upgrade --install -f values-production.yaml postgresql .
kubectl get all
我收到的结果:
- PostgreSQL-master 正在运行
- Postgresql-slave 未运行
我期望的结果:
- PostgreSQL-master 正在运行
- PostgreSQL-slave 正在运行
请尝试使用Oparator安装PostgreSQL集群。 您可以使用 1. https://github.com/zalando/postgres-operator/blob/master/docs/quickstart.md#deployment-options 2. https://github.com/CrunchyData/postgres-operator
它们都是流行的postgresql运算符。 我想建议你 crunchydata PGO.你可以从这里轻松安装它
helm upgrade --install --debug -f values-production.yaml postgresql .
你能尝试调试和--dry-run吗? 另请参阅此自述文件。
https://github.com/bitnami/charts/blob/master/bitnami/postgresql/README.md