Cluster: find peer pods by listing pods, not Endpoints

191af92 · Gabe Morell · 2026-10-27 14:00

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

Files changed

modified config/runtime.exs
+6 −0
@@ -90,6 +90,12 @@ if config_env() == :prod do
90 90 strategy: Cluster.Strategy.Kubernetes,
91 91 config: [
92 92 mode: :ip,
93 + # Peers are found by listing *pods* with the selector. The
94 + # default (:endpoints) filters Endpoints objects by it, and
95 + # those carry their Service's labels, not the pods' — so an
96 + # unlabelled headless Service finds nobody, silently. The pods
97 + # carry the label, and the app's Role already lists them.
98 + kubernetes_ip_lookup_mode: :pods,
93 99 kubernetes_selector: "name=feedpug",
94 100 kubernetes_service_name: "feedpug-headless",
95 101 kubernetes_node_basename: "feed_pug",

Parents: 4ad4fce