Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Proxy setup for kubernetes
export http_proxy=
export HTTP_PROXY=$http_proxy
export https_proxy=$http_proxy
export HTTPS_PROXY=$http_proxy
export HOST_IP=`hostname -i`
printf -v pool '%s,' 192.168.0.{1..253}
printf -v service '%s,' 10.96.0.{1..253}
export no_proxy=",localhost,${HOST_IP,},${service%,},${pool%,},";
export NO_PROXY=$no_proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment