Use Gossip strategy for Kubernetes clustering

This commit is contained in:
Graham McIntire 2025-07-25 11:53:01 -05:00
parent 187a607563
commit 94fad09901
No known key found for this signature in database

View file

@ -141,15 +141,14 @@ if config_env() == :prod do
# Configure libcluster topology based on environment
if cluster_enabled do
# For now, use manual node list until we fix DNS resolution
# In production, we would use Kubernetes API or custom strategy
config :libcluster,
topologies: [
kubernetes: [
strategy: Cluster.Strategy.Kubernetes.DNS,
strategy: Cluster.Strategy.Gossip,
config: [
service: "aprs-headless",
application_name: "aprsme",
namespace: System.get_env("POD_NAMESPACE", "aprs"),
polling_interval: 10_000
secret: System.get_env("RELEASE_COOKIE", "aprs-cluster-cookie")
]
]
]