Merge pull request #10046 from lingsamuel/no_proxy
Kic: make sure NO_PROXY contains api endpointpull/10076/head
commit
02b770c2da
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue