Skip to content

Support kubernetes based peer identification #1462

Open
@trashhalo

Description

@trashhalo

I just wanted to point out that for users running in kubernetes which I assume is a majority, you can use a headless service to identify peers. This would allow you to not have redis and reduce the deployed surface area of the application.

I know this because libcluster the distributed cluster library for elixir uses this. The code can be seen here. https://github.com/bitwalker/libcluster/blob/main/lib/strategy/kubernetes_dns.ex

  1. Create a kubernetes service that targets the pods
  2. Use dns to inspect service this gives you the ips of your peers

Feel free to close if not helpful! just wanted to let you know

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions