libcluster v2.1.0 Cluster.Strategy.Kubernetes
This clustering strategy works by loading all pods in the current Kubernetes namespace with the configured tag. It will fetch the addresses of all pods with that tag and attempt to connect. It will continually monitor and update it’s connections every 5s.
It assumes that all nodes share a base name, are using longnames, and are unique
based on their FQDN, rather than the base hostname. In other words, in the following
longname, <basename>@<domain>
, basename
would be the value configured in
An example configuration is below:
config :libcluster,
topologies: [
k8s_example: [
strategy: Elixir.Cluster.Strategy.Kubernetes,
config: [
kubernetes_node_basename: "myapp",
kubernetes_selector: "app=myapp",
polling_interval: 10_000]]]
Summary
Functions
Callback implementation for Cluster.Strategy.start_link/1
Functions
Callback implementation for Cluster.Strategy.start_link/1
.