Skip to content

Instantly share code, notes, and snippets.

@oazabir
Created August 13, 2018 06:27
Show Gist options
  • Save oazabir/de8ba9ff3b343eab052bac69fa708c57 to your computer and use it in GitHub Desktop.
Save oazabir/de8ba9ff3b343eab052bac69fa708c57 to your computer and use it in GitHub Desktop.
Proxy setup for kubernetes
export http_proxy=http://proxy.intra.bt.com:8080/
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="127.0.0.1,localhost,${HOST_IP,},${service%,},${pool%,},127.0.0.1";
export NO_PROXY=$no_proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment