Skip to content

Instantly share code, notes, and snippets.

View eddienko's full-sized avatar
🕊️
Stand with Peace

Eduardo Gonzalez eddienko

🕊️
Stand with Peace
View GitHub Profile
global_defs {
router_id LVS_DEVEL
}
vrrp_script check_apiserver {
script "/etc/keepalived/check_apiserver.sh"
interval 3
weight -2
fall 10
rise 2
}
#!/bin/sh
errorExit() {
echo "*** $*" 1>&2
exit 1
}
APISERVER_VIP=xxx.xxx.xx.xx
APISERVER_DEST_PORT=6443
@eddienko
eddienko / casuauthenticator.py
Last active October 10, 2022 14:10
CASU Authenticator
"""
Custom Authenticator to use generic OAuth2 with JupyterHub
"""
import sys
import json
import os
import base64
import urllib