Skip to content

Commit 02b770c

Browse files
authored
Merge pull request #10046 from lingsamuel/no_proxy
Kic: make sure NO_PROXY contains api endpoint
2 parents a590ab7 + e0178ac commit 02b770c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deploy/kicbase/entrypoint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ configure_proxy() {
2323
# ensure all processes receive the proxy settings by default
2424
# https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html
2525
mkdir -p /etc/systemd/system.conf.d/
26+
if [[ ! -z "${NO_PROXY-}" ]]; then
27+
NO_PROXY="${NO_PROXY},control-plane.minikube.internal"
28+
fi
2629
cat <<EOF >/etc/systemd/system.conf.d/proxy-default-environment.conf
2730
[Manager]
28-
DefaultEnvironment="HTTP_PROXY=${HTTP_PROXY:-}" "HTTPS_PROXY=${HTTPS_PROXY:-}" "NO_PROXY=${NO_PROXY:-}"
31+
DefaultEnvironment="HTTP_PROXY=${HTTP_PROXY:-}" "HTTPS_PROXY=${HTTPS_PROXY:-}" "NO_PROXY=${NO_PROXY:-"control-plane.minikube.internal"}"
2932
EOF
3033
}
3134

0 commit comments

Comments
 (0)