mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-24 20:18:18 +00:00
Information for operating Rancher behind a corporate proxy.
This commit is contained in:
@@ -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.
|
||||
@@ -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://<username>:<password>@<proxy url>:<proxy port>/" >> .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
|
||||
```
|
||||
Reference in New Issue
Block a user