将Postgresql部署到kubenetes

问题描述 投票:-2回答:2

重现问题的步骤

  1. helm pull bitnami/postgresql
  2. tar -xf postgresql-8.4.3.tgz && cd postgresql
  3. 使用storageClass:“ local-path”,postgresqlPassword:root,postgresqlDatabase:test更新values-production.yaml。>
  4. helm upgrade --install -f values-production.yaml postgresql .
  5. kubectl get all
  6. 我收到的结果:

  • postgresql-master正在运行
  • postgresql-slave没有运行
  • 我期望的结果:

  • postgresql-master正在运行
  • postgresql-slave正在运行

重现该问题的步骤掌舵bitnami / postgresql tar -xf postgresql-8.4.3.tgz && cd postgresql使用storageClass:“ local-path”,postgresqlPassword:root,...,更新values-production.yaml,]] >

请尝试使用oparator安装postgresql集群。您可以使用1.https://github.com/zalando/postgres-operator/blob/master/docs/quickstart.md#deployment-options2. https://github.com/CrunchyData/postgres-operator

它们都是流行的postgresql运算符。我想建议您使用crunchydata PGO。您可以轻松地从this

安装它
helm upgrade --install --debug -f values-production.yaml postgresql .

您可以尝试调试和--dry-run吗?也请参阅本自述文件。

https://github.com/bitnami/charts/blob/master/bitnami/postgresql/README.md

postgresql kubernetes
2个回答

-1
投票
helm upgrade --install --debug -f values-production.yaml postgresql .

您可以尝试调试和--dry-run吗?也请参阅本自述文件。

© www.soinside.com 2019 - 2024. All rights reserved.