Thanks! That was exactly what I was looking for. From a first glance it seems it's well possible to use it with non-k8s environments (like Rancher's Cattle) as well, using Consul and, possibly, a bit of duct tape.
But can you please tell what's the general difference between the original and the fork? I see that both are active, but nothing in README tells what one has over another.
It's a bit of a failure on our (gravitational) side as we are moving fast and haven't submitted PR yet. We will definitely try to merge upstream soon though. We've added several features and changes to the code compared to Simone's version:
* S3 backup restore feature
* RPC to communicate with controller over API
* Refactored client and updated the CLI
* Updated and slimmed down base images
https://github.com/gravitational/stolon
this is heavily modified version of
https://github.com/sorintlab/stolon
K8s-native deployment of PostgreSQL