This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global_defs { | |
router_id LVS_DEVEL | |
} | |
vrrp_script check_apiserver { | |
script "/etc/keepalived/check_apiserver.sh" | |
interval 3 | |
weight -2 | |
fall 10 | |
rise 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
errorExit() { | |
echo "*** $*" 1>&2 | |
exit 1 | |
} | |
APISERVER_VIP=xxx.xxx.xx.xx | |
APISERVER_DEST_PORT=6443 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Custom Authenticator to use generic OAuth2 with JupyterHub | |
""" | |
import sys | |
import json | |
import os | |
import base64 | |
import urllib |
OlderNewer