- 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
8 lines
252 B
Elixir
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
|