elixir_kubernetes_cluster v0.1.9 ElixirKubernetesCluster.Worker
Contacts Kubernetes to check the list of node IPs
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Given a list of pod_ips, it tries to connect to all of them
Contacts the Kubernetes API to obtain a list of pods of the desired namespace. Next it filters the pods and maps them to their IP address
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
connect_to_pods(pod_ips, app_namespace)
Given a list of pod_ips, it tries to connect to all of them.
Link to this function
obtain_pod_info(api_endpoint, app_namespace, pod_name)
Contacts the Kubernetes API to obtain a list of pods of the desired namespace. Next it filters the pods and maps them to their IP address.
Link to this function
start_link()