edevil/elixir_kubernetes_cluster
Module to query the Kubernetes API at startup and connect to other elixir nodes in pods
{ "createdAt": "2016-08-08T12:35:16Z", "defaultBranch": "master", "description": "Module to query the Kubernetes API at startup and connect to other elixir nodes in pods", "fullName": "edevil/elixir_kubernetes_cluster", "homepage": null, "language": "Elixir", "name": "elixir_kubernetes_cluster", "pushedAt": "2018-03-26T13:31:41Z", "stargazersCount": 33, "topics": [], "updatedAt": "2024-12-10T09:14:55Z", "url": "https://github.com/edevil/elixir_kubernetes_cluster"}ElixirKubernetesCluster
Section titled “ElixirKubernetesCluster”Elixir module that uses the Kubernetes API to find the IP of other nodes of the cluster to connect to.
Installation
Section titled “Installation”If available in Hex, the package can be installed as:
- Add
elixir_kubernetes_clusterto your list of dependencies inmix.exs:
```elixirdef deps do [{:elixir_kubernetes_cluster, "~> 0.1.0"}]end```2. Ensure elixir_kubernetes_cluster is started before your application:
```elixirdef application do [applications: [:elixir_kubernetes_cluster]]end```- Periodically compare list of pods from Kubernetes to our list of connected nodes
- Reconcile with Kubernetes if lists differ