Comments (7)
- By "hosts" you mean machines that can potentially house a Juju client?
- When deploying a charm, my understanding was that the client makes a request to the controller, which performs the download.
- If the above is true I do see how a non-remote LXD controller and the client are bound together.
- Yes.
- The controller does download the charm itself, but the client accesses the charm meta-data to do some validation client-side before making that request.
from docs.
@manadart Thanks for this.
from docs.
After some RTFM and experimentation, here are some things to consider as well:
Exporting http_proxy and https_proxy environment variables could create problems with certain charms ( I know it does mess up etcd.) An alternative is to configure your model's juju-http-proxy and juju-https-proxy settings. For example:
juju bootstrap localhost lxd-bionic <insert --config no_proxy, http_proxy and https_proxy options as needed>
juju add _model <name>
juju model-config juju-http-proxy=http://squid.internal:3128 juju-https-proxy=http://squid.internal:3128
Any services deployed will also need to reach other machines on this host, so use juju-no-proxy to allow this. For example.
juju model-config juju-no-proxy=127.0.0.1,localhost,::1,10.51.29.0/24
(where lxd bridge has ip 10.51.29.1 and the nodes would have an ip of 10.51.29.X)
After you deploy your charm/bundle, you can also set individual charm proxy for those that need to use snap to install etc. For example:
juju config etcd snap_proxy=http://squid.internal:3128
juju config <insert charm name here> snap_proxy=http://squid.internal:3128 http_proxy=http://squid.internal:3128 https_proxy=http://squid.internal:3128
from docs.
@manjo-git Awesome. I may question you on some of this.
from docs.
To begin, there is documentation on this. See Using the localhost cloud offline, linked from the Working offline page. I will start enhancing it based on the information in this issue.
from docs.
For hosts inside the proxied network, it is also worth pointing out that the local environment should be set up to use the proxies, because deployment requires the Juju client to access the charm store directly before calling the Juju API.
- By "hosts" you mean machines that can potentially house a Juju client?
- When deploying a charm, my understanding was that the client makes a request to the controller, which performs the download.
- If the above is true I do see how a non-remote LXD controller and the client are bound together.
from docs.
Enhance proxy configuration pages
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
- 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.