Code Monkey home page Code Monkey logo

Comments (4)

joe-pll avatar joe-pll commented on May 14, 2024 1

Hi @CyberDem0n,

sorry for my late answer, I was quite busy last period. I will make a PR with the fix.
I am using Spilo both with Kubernetes and with 3 different instances of docker-compose (running on 3 different hosts). I need Postgres as a backend for Kong gateway with replication and self election. Furthermore I use HAProxy to point the Postgres' master, using a check on Patroni's port.

Kong instances will point to HAProxy.

The PR is the #197

from spilo.

joe-pll avatar joe-pll commented on May 14, 2024 1

Thanks @hjacobs, the project looks great. I will test it on my k8s cluster.

from spilo.

CyberDem0n avatar CyberDem0n commented on May 14, 2024

Hi @joe-pll,

configure_spilo.py tries to detect you environment (aws, gce, openstack, kubernetes). In case if it is something different, it assumes that you just start it in a docker container on your local machine and creates etcd.conf: https://github.com/zalando/spilo/blob/master/postgres-appliance/configure_spilo.py#L517 for supervisor.

You are actually right, if there is either ETCD_HOST or ETCD_DISCOVERY_DOMAIN environment variables set, configure_spilo.py should not create etcd.conf
Can you please create a PR fixing it?

And one more question, can you explain a little bit more about your setup? I am just curios, where and how do you run Spilo?

from spilo.

hjacobs avatar hjacobs commented on May 14, 2024

@joe-pll as you mention Kubernetes: please also check out our Postgres Operator for Kubernetes (it uses Patroni under the hood), we are currently migrating first production databases to it 🎉 👉 https://github.com/zalando-incubator/postgres-operator

from spilo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.