Use DNSPoll strategy for Kubernetes clustering
This commit is contained in:
parent
94fad09901
commit
16e675745f
1 changed files with 6 additions and 5 deletions
|
|
@ -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"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue