prop/rel/env.sh.eex
Graham McIntire 2de94e2318 Add Erlang clustering via libcluster and expose LiveDashboard
- libcluster with Kubernetes IP strategy for pod discovery
- RBAC for pod list/get, POD_IP from downward API, shared cookie
- LiveDashboard at /dashboard for all environments
2026-04-06 09:46:48 -05:00

8 lines
252 B
Elixir

#!/bin/sh
# Set the release node name from the pod IP for Erlang clustering
if [ -n "$POD_IP" ]; then
export RELEASE_DISTRIBUTION=name
export RELEASE_NODE=microwaveprop@${POD_IP}
export RELEASE_COOKIE="${ERLANG_COOKIE:-microwaveprop_cookie}"
fi