LiveBook remote execution within Kubernetes

Hi,

I’ve deployed my application, and livebook within kubernetes. I’m now trying to get livebook to work with remote execution against my running application, and I’m struggling to get the connection working.

for the application:

  • deployment has epmd port configured
  • service for both web endpoints, and epmd
  • release cookie is set as env in dockerfile

in livebook, i’m trying this out

testing dns resolves - these both return ip’s for the services

DNS.resolve("my-app.default.svc.cluster.local")
DNS.resolve("my-app-epmd.default.svc.cluster.local")

testing node connection - these all fail with :pang.

node = :"my-app.prod.svc.cluster.local"
Node.ping(node)

node = :"my-app-epmd.prod.svc.cluster.local"
Node.ping(node)

node = :"my-app@my-app.prod.svc.cluster.local"
Node.ping(node)

node = :"my-app@my-app-epmd.prod.svc.cluster.local"
Node.ping(node)

Naturally, trying to actually run the Kino.RPC fails with {:erpc, :noconnection}

I’m pretty new to distributed elixir, so i’m sure i’m missing something basic :crossed_fingers:

thanks