Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Connecting to an Erlang node running in Kubernetes

In the previous section, we exposed a range of container ports that allow us to connect to Erlang nodes running inside the container from the outside. However, this time we don't want to expose the 4369 and 9001-9004 ports of the deployed pods by updating our Kubernetes elixir-drip-loadbalancer service because EPMD connections are not safe, even if you connect your nodes with TLS.

As such, we will forward the EPMD ports to the local environment with the help of kubectl port-forward. Because EPMD runs on port 4369, before forwarding the ports make sure no EPMD is running locally with pkill epmd, otherwise you won't be able to forward port 4369:

$ pkill epmd$ kubectl -n production port-forward ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content