From 6d2b72d3b9e7345a546fd238c78033cc0737f2dd Mon Sep 17 00:00:00 2001 From: xiangpengzhao Date: Tue, 24 May 2016 20:26:16 -0400 Subject: [PATCH 1/2] Set no_proxy for localhost --- hack/lib/init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/lib/init.sh b/hack/lib/init.sh index 0ef514d5d5a..ab58694c531 100644 --- a/hack/lib/init.sh +++ b/hack/lib/init.sh @@ -25,6 +25,8 @@ KUBE_OUTPUT_SUBPATH="${KUBE_OUTPUT_SUBPATH:-_output/local}" KUBE_OUTPUT="${KUBE_ROOT}/${KUBE_OUTPUT_SUBPATH}" KUBE_OUTPUT_BINPATH="${KUBE_OUTPUT}/bin" +export no_proxy=127.0.0.1,localhost + source "${KUBE_ROOT}/hack/lib/util.sh" source "${KUBE_ROOT}/cluster/lib/util.sh" source "${KUBE_ROOT}/cluster/lib/logging.sh" From ab9d60f26e74ed069faef797b2701fdf154c9416 Mon Sep 17 00:00:00 2001 From: Xiangpeng Zhao Date: Mon, 30 May 2016 20:18:06 +0800 Subject: [PATCH 2/2] Add a comment --- hack/lib/init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/lib/init.sh b/hack/lib/init.sh index ab58694c531..3464a96330d 100644 --- a/hack/lib/init.sh +++ b/hack/lib/init.sh @@ -25,6 +25,8 @@ KUBE_OUTPUT_SUBPATH="${KUBE_OUTPUT_SUBPATH:-_output/local}" KUBE_OUTPUT="${KUBE_ROOT}/${KUBE_OUTPUT_SUBPATH}" KUBE_OUTPUT_BINPATH="${KUBE_OUTPUT}/bin" +# Set no_proxy for localhost if behind a proxy, otherwise, +# the connections to localhost in scripts will time out export no_proxy=127.0.0.1,localhost source "${KUBE_ROOT}/hack/lib/util.sh"