Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HTTP proxy during deployment #1348

Closed
gtirloni opened this issue Jun 14, 2024 · 4 comments
Closed

Add support for HTTP proxy during deployment #1348

gtirloni opened this issue Jun 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@gtirloni
Copy link
Contributor

When deploying in a airgapped networks that requires the use of a HTTP proxy, the deployment fails because various tools expect the proxy configuration to be defined differently (e.g. through https_proxy env vars or config files or parameters).

Additionally, configuring containerd to always use a proxy creates other issues (like having to keep the NO_PROXY env var always updated whenever there are changes, which makes troubleshooting harder). The same situation happens when the target hosts are all locally configured to use a proxy.

Atmosphere's use of import_playbook also causes some issues because it does not support defining environment variables to the imported playbooks so they don't reach the target hosts and the tools/modules end up trying to connect directly to the external network.

@gtirloni gtirloni added the enhancement New feature or request label Jun 14, 2024
@mpiscaer
Copy link
Contributor

@gtirloni Would this #579 be solution, we only use internet for Authentication and Monitoring all else come from internally.

@gtirloni
Copy link
Contributor Author

gtirloni commented Jun 17, 2024

@mpiscaer I think that's a good start but there are many places that this touches. Basically all helm values need some kind of custom value to point it to the new registry with authentication (common in more restricted environments).

Yes, I think it's a good start. I was confusing this issue with another one about authenticated container registries.

@mnaser
Copy link
Member

mnaser commented Jun 17, 2024

The step one to solving this was this commit:

vexxhost/ansible-collection-containers@1480d52

The step two is documenting the necessary variable, in 99.9999% of the cases, it will be:

http_proxy: "http://foobar:3128"
https_proxy: "http://foobar:3128"
no_proxy: "localhost,127.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,.svc,.cluster.local"

With this, I believe that covers almost all scenarios unless you've got some wild stuff running your cluster on non private IP space WITH an HTTP proxy...

@mnaser
Copy link
Member

mnaser commented Jul 16, 2024

Documented here and tested working.

https://vexxhost.github.io/atmosphere/deploy/inventory.html#http-proxy

@mnaser mnaser closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants