Use DNSPoll strategy for Kubernetes clustering

This commit is contained in:
Graham McIntire 2025-07-25 12:05:12 -05:00
parent 94fad09901
commit 16e675745f
No known key found for this signature in database

View file

@ -141,14 +141,15 @@ if config_env() == :prod do
# Configure libcluster topology based on environment # Configure libcluster topology based on environment
if cluster_enabled do if cluster_enabled do
# For now, use manual node list until we fix DNS resolution # Use DNS-based strategy with proper configuration
# In production, we would use Kubernetes API or custom strategy
config :libcluster, config :libcluster,
topologies: [ topologies: [
kubernetes: [ k8s: [
strategy: Cluster.Strategy.Gossip, strategy: Cluster.Strategy.DNSPoll,
config: [ config: [
secret: System.get_env("RELEASE_COOKIE", "aprs-cluster-cookie") polling_interval: 5_000,
query: "aprs-headless.aprs.svc.cluster.local",
node_basename: "aprsme"
] ]
] ]
] ]