From 5242abfab3ff72f385fc56f7bf1f29e94adde817 Mon Sep 17 00:00:00 2001 From: Josef Meier Date: Sun, 3 Jun 2018 15:17:20 +0200 Subject: [PATCH] Information for operating Rancher behind a corporate proxy. --- .../rancher/v2.x/en/installation/_index.md | 4 +++ .../behind-corporate-proxy/_index.md | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 content/rancher/v2.x/en/installation/behind-corporate-proxy/_index.md diff --git a/content/rancher/v2.x/en/installation/_index.md b/content/rancher/v2.x/en/installation/_index.md index 1aee8afc49b..96b6eee7a65 100644 --- a/content/rancher/v2.x/en/installation/_index.md +++ b/content/rancher/v2.x/en/installation/_index.md @@ -25,3 +25,7 @@ Choose from the following installation options: - [Air Gap Installation]({{< baseurl >}}/rancher/v2.x/en/installation/air-gap-installation/) We also have instructions for a more specialized use case where you install Rancher Server in an environment without an Internet connection. + +- [Operation behind a corporate proxy]({{< baseurl >}}/rancher/v2.x/en/installation/behind-corporate-proxy/) + + If your rancher installation runs behind a corporate proxy, this page will provide you with information how to do that. \ No newline at end of file diff --git a/content/rancher/v2.x/en/installation/behind-corporate-proxy/_index.md b/content/rancher/v2.x/en/installation/behind-corporate-proxy/_index.md new file mode 100644 index 00000000000..a1a8d58bd7a --- /dev/null +++ b/content/rancher/v2.x/en/installation/behind-corporate-proxy/_index.md @@ -0,0 +1,30 @@ +--- +title: Operating Rancher behind a corporate proxy +weight: 275 +--- +If you operate Rancher behind a corporate proxy and you for instance want to use Helm catalogs which are stored in the internet you must provide Rancher informations about your proxy. + +## Set http_proxy environment variable ## + +### Ubuntu ### +Check if *http_proxy* is still defined: +```bash +echo $http_proxy +``` + +If it is empty, you should set and store it in your account's environment like this: + + +```bash +echo "export http_proxy=http://:@:/" >> .profile +``` + +Logout and relogin to make this change effective. + +## Start Rancher container with proxy information ## + +You must ensure that your *http_proxy* environment variable is visible inside of Rancher's docker container: + +```bash +sudo docker run -d --restart=unless-stopped --volumes-from rancher-data -p 80:80 -p 443:443 -e HTTP_PROXY=$http_proxy -e HTTPS_PROXY=$http_proxy -e http_proxy=$http_proxy -e https_proxy=$http_proxy -e NO_PROXY="localhost,127.0.0.1" -e no_proxy="localhost,127.0.0.1" rancher/rancher +```