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 ...