From 41370f3c040e55003e8fc7d7f2867b59208dec12 Mon Sep 17 00:00:00 2001 From: Stefan Gangefors Date: Thu, 17 Mar 2016 14:30:20 +0100 Subject: [PATCH] Add proxy environment section to Vagrant guide This commit readds the proxy environment section that was removed in previous commits. --- 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 12f02b593f..6683319e10 100644 --- a/docs/getting-started-guides/vagrant.md +++ b/docs/getting-started-guides/vagrant.md @@ -361,6 +361,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 VAGRANT_HTTP_PROXY=http://username:password@proxyaddr:proxyport +export VAGRANT_HTTPS_PROXY=https://username:password@proxyaddr:proxyport +``` + +Optionally you can specify addresses to not proxy, for example + +```sh +export VAGRANT_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.