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

system env no_proxy with IP range format not inferred #233

Closed
RabbidDog opened this issue Apr 5, 2019 · 3 comments
Closed

system env no_proxy with IP range format not inferred #233

RabbidDog opened this issue Apr 5, 2019 · 3 comments

Comments

@RabbidDog
Copy link

System: Ubuntu 18.04
kubernetes-client: v0.8.2

added the IP range 10.96.0.0/12 in no_proxy env variable. But the requests to get kubernetes resources tries to go through the company proxy. Explicitly added 10.96.0.1 to no_proxy env variable and then requests to get kubernetes resources succeed.

@drubin
Copy link
Contributor

drubin commented Apr 5, 2019

As far as I understand no_proxy works with wild cards so in your example you would use

no_proxy=10.96. instead of an actual subnet range.

@brendandburns
Copy link
Contributor

Yep, it's filter-matching, not a CIDR:

https://github.com/request/request/pull/1096/files#diff-ccc0734f65dd7a299409ff07d35be095R300

Closing.

@RabbidDog
Copy link
Author

As far as I understand no_proxy works with wild cards so in your example you would use

no_proxy=10.96. instead of an actual subnet range.

I hoped for the same but tests reveal that it does not work for no_proxy=10.96. . Only specifying the complete IP is working.
Also amazing was that I had to include localhost in the list of no_proxy.
[Putting this comment in closed ticket just in case anyone faces the same issue]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants