Cluster: find peer pods by listing pods, not Endpoints

fe8f7ae · Gabe Morell · 2026-10-27 14:00

2 files +6 -0
Message
{commit_body(@commit)}

Files changed

modified config/runtime.exs
+6 −0
@@ -86,6 +86,12 @@ if config_env() == :prod do
86 86 strategy: Cluster.Strategy.Kubernetes,
87 87 config: [
88 88 mode: :ip,
89 + # Peers are found by listing *pods* with the selector. The
90 + # default (:endpoints) filters Endpoints objects by it, and
91 + # those carry their Service's labels, not the pods' — so an
92 + # unlabelled headless Service finds nobody, silently. The pods
93 + # carry the label, and the app's Role already lists them.
94 + kubernetes_ip_lookup_mode: :pods,
89 95 # Both keys are required by libcluster 3.5 even in :endpoints
90 96 # lookup mode — it filters endpoints by selector.
91 97 kubernetes_selector: "name=waxx",

Parents: f06ce3a