Created
August 13, 2018 06:27
-
-
Save oazabir/de8ba9ff3b343eab052bac69fa708c57 to your computer and use it in GitHub Desktop.
Proxy setup for kubernetes
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
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