From 7720b340c1fc69937158e3776e54f513d0512fe8 Mon Sep 17 00:00:00 2001 From: mfanjie Date: Mon, 7 Mar 2016 10:15:50 +0800 Subject: [PATCH] add proxy settings doc --- docs/getting-started-guides/vagrant.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/getting-started-guides/vagrant.md b/docs/getting-started-guides/vagrant.md index ce9a18e313..f1dd5a6bef 100644 --- a/docs/getting-started-guides/vagrant.md +++ b/docs/getting-started-guides/vagrant.md @@ -363,6 +363,24 @@ export KUBERNETES_MASTER_MEMORY=1536 export KUBERNETES_NODE_MEMORY=2048 ``` +#### I want to set proxy settings for my Kubernetes cluster boot strapping! + +If you are behind a proxy, you need to install vagrant proxy plugin and set the proxy settings by + +```sh +vagrant plugin install vagrant-proxyconf +export KUBERNETES_HTTP_PROXY=http://username:password@proxyaddr:proxyport +export KUBERNETES_HTTPS_PROXY=https://username:password@proxyaddr:proxyport +``` + +Optionally you can specify addresses to not proxy, for example + +```sh +export KUBERNETES_NO_PROXY=127.0.0.1 +``` + +If you are using sudo to make kubernetes build for example make quick-release, you need run `sudo -E make quick-release` to pass the environment variables. + #### I ran vagrant suspend and nothing works! `vagrant suspend` seems to mess up the network. This is not supported at this time.