Skip to content

Instantly share code, notes, and snippets.

View gerbal's full-sized avatar

Grant McLendon gerbal

  • Madison
  • 17:07 (UTC -06:00)
View GitHub Profile
@gerbal
gerbal / iex-observe.sh
Last active September 14, 2018 15:47 — forked from AndrewDryga/erl-observe.sh
Script for connecting Erlang Observer to remote node hosted in Kubernetes
#!/bin/bash
# This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster.
# Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie
#
# Don't forget to include `:runtime_tools` in your mix.exs application dependencies.
set -e
# Trap exit so we can try to kill proxies that has stuck in background
function cleanup {
echo " - Stopping kubectl proxy."