k create cm nginx-lb-config --from-file=nginx-lb.configmap --dry-run -o yaml | k replace cm nginx-lb-config -f -
This file contains hidden or 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
## Enable --tls substitution for helm tls-enabled commands | |
# | |
helm() { | |
_context=$(kubectl config current-context) | |
if [ -d "${HELM_HOME:-$HOME/.helm}/tls/$_context" ]; then | |
export HELM_TLS_CA_CERT="${HELM_HOME:-$HOME/.helm}/tls/$_context/ca.cert.pem" | |
export HELM_TLS_CERT="${HELM_HOME:-$HOME/.helm}/tls/$_context/cert.pem" | |
export HELM_TLS_KEY="${HELM_HOME:-$HOME/.helm}/tls/$_context/key.pem" | |
export HELM_TLS_ENABLE="true" | |
fi |
This file contains hidden or 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 | |
#FreeDNS updater script | |
(which wget > /dev/null) || { echo "wget not found"; exit 1; } | |
(which nslookup > /dev/null) || { echo "nslookup not found"; exit 1; } | |
# FREEDNS_APIKEY (loginid|password -> SHA1) | |
DYNLIST=$(wget -qO- http://freedns.afraid.org/api/?action=getdyndns&sha=${FREEDNS_APIKEY}) | |
NAME="$1" |
NewerOlder