-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Using no_proxy attribute does not work as expected #1995
Comments
this PR could be related #1968 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hi all, I hope you´re doing well!
It seems neither no_proxy nor NO_PROXY is working, indeed if I type anything it won´t work too and no exception arises.
The only workaround I found was to set empty the HTTPS_PROXY environment variable before
***@***.***
***@***.***
Thank you and regards
Alejandro
From: rheemskerk ***@***.***>
Sent: Wednesday, May 10, 2023 20:35
To: kubernetes-client/python ***@***.***>
Cc: Alejandro Bailo ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL]: Re: [kubernetes-client/python] Using no_proxy attribute does not work as expected (Issue #1995)
Did you try NO_PROXY instead of no_proxy?
—
Reply to this email directly, view it on GitHub<#1995 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYDSJKSFCQLMVVHMILM5SL3XFPNUZANCNFSM6AAAAAAUGCKP6Y>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Finally we set the environment variable with os.environ before the call Configuration().get_default_copy(), because neither no_proxy nor NO_PROXY work as expected. |
Dear @jandbg we ran in to the same problem as you did. We aren't able to bypass the proxy when executing a command from within the POD using the connect_get_namespaced_pod_exec method. We use API Key and Username, but not kubeconfig. We have set os.environ['NO_PROXY'] and ['no_proxy'] both, but without any avail. Could you let me know what worked for you in this case? Thanks.. |
Hi @gurujonnala , we solved the problem setting the following environment variable os.environ['HTTPS_PROXY'] = '' # c.no_proxy does not work before we created the Configuration().get_default_copy() object and call exec_commands function. |
Hi all! First I would like to said thanks for the this k8s client library, I think it´s a great tool! We use it a lot in our projects.
We are facing the following issue. We have a pod (lets said pod A) where we´re running a program based on:
https://github.com/kubernetes-client/python/blob/master/examples/pod_exec.py
The goal of the pogram is to execute a command in another pod, lets said pod B.
In the pod A we have defined an HTTPS_PROXY environment variable, and we would like to bypass this HTTPS_PROXY, so we set the atributte no_proxy on the kubernetes.client.Configuration class. We are not very sure how to use this attribute, we set no_proxy attribute with the pod B´s IP address but we still get the "Error 407 Proxy authentication". So I guess we couldn´t bypass the proxy.
The question is, how I should proceed to execute the command in the pod B and bypass the HTTPS_PROXY? How I must setup the no_proxy attribute? I mean, I guess is a IPs string comma separated, I´m right? Something like this "100.67.5.3.170,100.65.2.169"
Thank you very much in advance, best regards!
Environment:
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
pip list | grep kubernetes
): kubernetes 24.2.0The text was updated successfully, but these errors were encountered: