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
kubectl attach: client-go does not respect CIDRs in NO_PROXY #54407
Labels
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
Comments
k8s-github-robot
added
the
needs-sig
Indicates an issue or PR lacks a `sig/foo` label and requires one.
label
Oct 23, 2017
kad
added a commit
to kad/kubernetes
that referenced
this issue
Oct 23, 2017
/sig api-machinery |
k8s-ci-robot
added
the
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
label
Oct 23, 2017
k8s-github-robot
removed
the
needs-sig
Indicates an issue or PR lacks a `sig/foo` label and requires one.
label
Oct 23, 2017
/assign @kad |
k8s-github-robot
pushed a commit
that referenced
this issue
Oct 23, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Use CIDR-aware proxy resolver for SPDY RoundTripper **What this PR does / why we need it**: `kubectl attach` for example doesn't work if NO_PROXY specifies API endpoint IP via CIDR notation. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #54407 **Special notes for your reviewer**: Potentially it will be good to get that change to 1.8.x **Release note**: ```release-note - API machinery's httpstream/spdy calls now support CIDR notation for NO_PROXY ```
kad
added a commit
to kad/kubernetes
that referenced
this issue
Oct 31, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT
/kind bug
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
kubectl run -i -t busybox1 --image=busybox
kubectl attach -i -t busybox1
Anything else we need to know?:
Transports in
staging/src/k8s.io/client-go/transport
seems to initialize properly defaults to useNewProxierWithNoProxyCIDR()
fromk8s.io/apimachinery/pkg/util/net
. However, when it comes to SPDY, dial function seems somehow ignores it and fallbacks to default transport? or default proxy resolvernet/http.ProxyFromEnvironment()
Environment:
kubectl version
):uname -a
): Linux k8s-c1.example.com 3.10.0-693.2.2.el7.x86_64 Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: