3 Star 0 Fork 0

mirrors_canonical/postgresql-patroni-container

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entrypoint.sh 733 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
cat > /var/lib/postgresql/data/patroni.yml <<__EOF__
bootstrap:
dcs:
postgresql:
use_pg_rewind: true
initdb:
- auth-host: md5
- auth-local: trust
- encoding: UTF8
- locale: en_US.UTF-8
- data-checksums
pg_hba:
- host all all 0.0.0.0/0 md5
- host replication ${PATRONI_REPLICATION_USERNAME} ${PATRONI_KUBERNETES_POD_IP}/16 md5
restapi:
connect_address: '${PATRONI_KUBERNETES_POD_IP}:8008'
listen: 0.0.0.0:8008
pod_ip: '${PATRONI_KUBERNETES_POD_IP}'
postgresql:
connect_address: '${PATRONI_KUBERNETES_POD_IP}:5432'
data_dir: /var/lib/postgresql/data/pgdata
listen: 0.0.0.0:5432
use_endpoints: true
__EOF__
/usr/bin/python3 /usr/local/bin/patroni /var/lib/postgresql/data/patroni.yml
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_canonical/postgresql-patroni-container.git
git@gitee.com:mirrors_canonical/postgresql-patroni-container.git
mirrors_canonical
postgresql-patroni-container
postgresql-patroni-container
main

搜索帮助