https://github.com/gocardless/patroni-spike
https://github.com/gocardless/patroni-spike
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gocardless/patroni-spike
- Owner: gocardless
- Created: 2018-11-22T18:10:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T17:58:11.000Z (over 6 years ago)
- Last Synced: 2025-01-14T08:52:52.964Z (5 months ago)
- Size: 25.4 KB
- Stars: 0
- Watchers: 65
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Patroni Spike
## What is this
A quick spike on running Patroni+Postgres in kubernetes, but only as a quick-and-dirty
substitute for spinning up VMs. As a result, we've avoided all of Patroni's "kube-native"
features.## Deployment
`ls *.yaml | xargs -n1 kubectl apply -f`
## Manual failover
`patronictl` may fail you. So you can port-forward to any of the patroni
processes and run the following:```
curl --silent -XPOST localhost:8008/failover -H "Content-Type: application/json" -d '{"leader": "postgres_1", "candidate": "postgres_2"}'
```