Recover Sentinel Config From Red Skull
#!/usr/bin/env python | |
import requests | |
for pod in requests.get("http://localhost:8000/api/knownpods").json()['Data']: | |
print "sentinel monitor {Name} {Info[IP]}:{Info[Port]} 2\nsentinel set {Name} auth-pass {AuthToken}".format(**pod) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment