Skip to content

Commit

Permalink
Merge pull request #10046 from lingsamuel/no_proxy
Browse files Browse the repository at this point in the history
Kic: make sure NO_PROXY contains api endpoint
  • Loading branch information
medyagh authored Dec 31, 2020
2 parents a590ab7 + e0178ac commit 02b770c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/kicbase/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ configure_proxy() {
# ensure all processes receive the proxy settings by default
# https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html
mkdir -p /etc/systemd/system.conf.d/
if [[ ! -z "${NO_PROXY-}" ]]; then
NO_PROXY="${NO_PROXY},control-plane.minikube.internal"
fi
cat <<EOF >/etc/systemd/system.conf.d/proxy-default-environment.conf
[Manager]
DefaultEnvironment="HTTP_PROXY=${HTTP_PROXY:-}" "HTTPS_PROXY=${HTTPS_PROXY:-}" "NO_PROXY=${NO_PROXY:-}"
DefaultEnvironment="HTTP_PROXY=${HTTP_PROXY:-}" "HTTPS_PROXY=${HTTPS_PROXY:-}" "NO_PROXY=${NO_PROXY:-"control-plane.minikube.internal"}"
EOF
}

Expand Down

0 comments on commit 02b770c

Please sign in to comment.