Comments (4)
This issue is super old, but still relevant. In fact, we've seen lots more people in #juju
asking about proxy settings for juju since 2.0 was released (eg, #1676). I'd like to propose something like the following for an offline/restrictive juju environment doc:
Juju works in restricted network environments and honors various proxy
settings (see *-proxy
options here. There are 2 places to configure proxies when bootstrapping juju:
-
The bootstrap unit itself may need proxy information to retrieve various packages. This is configured with
--config
options during bootstrap. -
Models may also need this proxy information if charms deployed in those models require external network access (for example, access to pypi to install requisite pip packages). This is configured with
--model-default
options during bootstrap.
As an example, consider an environment where all network traffic must go through an http://squid.internal:3128
proxy. We plan to deploy charms locally with lxd, so we need to ensure all inter-container traffic is not proxied. This can be achieved as follows:
## no proxy for localhost, our eth0 ip address, and our lxd subnet
$ export no_proxy=`echo localhost 10.245.67.130 10.44.139.{1..255} | sed 's/ /,/g'`
$ export http_proxy=http://squid.internal:3128
$ export https_proxy=http://squid.internal:3128
And now, bootstrap juju with appropriate proxy configuration:
$ juju bootstrap \
--config http-proxy=$http_proxy \
--config https-proxy=$https_proxy \
--config no-proxy=$no_proxy \
--model-default http-proxy=$http_proxy \
--model-default https-proxy=$https_proxy \
--model-default no-proxy=$no_proxy \
localhost
I would make a formal PR for the above, but I'm not sure where it would fit best. Perhaps as a section in the models-config
page? Maybe on its own page? Wadda you think @mbruzek @evilnick @niedbalski?
from docs.
I think we need a new page that deals specifically with the issues arising from operating in a constrained environment, and then link to it from other relevant sections of the documentation (e.g. the charm deploying page, controllers page etc).
Thanks @kwmonroe for this work. I will add a work item for us to add such a page and update this issue when we have done so.
from docs.
Thanks for the ideas. I agree with this issue. I have been using http_proxy and https_proxy settings in a restrictive environments.
I also wanted to add some documenation about no_proxy key that Juju accepts. You would noproxy stuff like localhost, 10.0.3.1, and the state servers own ip address, but proxy the rest of the traffic.
The GNU documentation for the proxy values can be found here:
http://www.gnu.org/software/wget/manual/html_node/Proxies.html
Thank you for the issue!
from docs.
I was under the impression that no-proxy should not have IPs, only domains.... As in 'a list of domains that proxy should not be used for' from http://www.gnu.org/software/wget/manual/html_node/Proxies.html
no_proxy' This variable should contain a comma-separated list of domain extensions proxy should _not_ be used for. For instance, if the value of
no_proxy' is `.mit.edu', proxy will not be used to retrieve documents from MIT.
from docs.
Related Issues (20)
- Add tutorial: Integrating a GKE cluster HOT 2
- Add tutorial: Understanding multi-cloud controllers
- Redirect loop in docs HOT 3
- Add tutorial: Kubernetes storage configuration HOT 1
- [2.6] Add command `show-application` HOT 1
- [Kubernetes workflow] Not clear at all how to add k8s cloud to Juju HOT 1
- Cross model relations scenario 2 is out of date HOT 1
- Documentation for Proxy Configuration Could Use More Detail HOT 7
- No way to jump between doc versions HOT 4
- Juju docs missing heading anchors HOT 3
- "getting started with juju" link forwards to 404 HOT 1
- document what happens with upgrade-charm when default charm config changes HOT 1
- juju bootstrap --help points to nonexistent docs for controller and model config HOT 1
- Broken link to commands reference HOT 2
- Missing 'debug-code' command
- model upgrades only increment 1 major version at a time
- Windows install instructions are inconsistent
- Broken links in "working offline" section in JUJU docs on both jaas.ai and juju.is sites. HOT 1
- LXD Guide improvement suggestions
- using-lxd-clustering-with-juju: dead link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.