You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cluster config in kube config allows proxy-url setting (i.e. proxy-url: http://127.0.1.1:8080) but is not used in the js lib
** Client Version **
e.g. 0.13.6
** Server Version **
doesn't apply
To Reproduce
Running the example from the main README.md with the current context pointing to a cluster that is configured with proxy-url, the example with throw "connect EHOSTUNREACH" when the cluster IP is not directly accessible.
Running the example with the env var HTTP_PROXY works as expected
Expected behavior
The clientlib should respect the proxy-url setting
Full implementation, obviously, is going to take time. Is that possible to start applying some fixes related to this issue? For example, stop filtering 'proxy-url' property while loading cluster configuration from config here.
Could someone recommend a way to set up a test environment for this?
Would it be correct to assume that if I have a Kubernetes cluster and do a kubectl proxy --port <number> and set the proxy URL to http://127.0.01:<number> in my kubeconfig that this is a valid way to test this?
Or do I need to set up a nginx reverse proxy for this?
Any update on this issue?
Hello,
Mybe You Can Try This Multiple Solution
Way 1.Export KubeConfig To Path Directory Yaml Or
Way 2.Paste The Yaml to YourDirectory/.Kube/Config
Hi Guys ! Until this is solved I did a simple hack to be able to use proxy-url. I've override the KubeConfig makeApiClient method to be able to override the "request" configuration. It's not super safe but runs
Hi Guys ! Until this is solved I did a simple hack to be able to use proxy-url. I've override the KubeConfig makeApiClient method to be able to override the "request" configuration. It's not super safe but runs
Works for normal api calls and log.
In case someone also wants to use a socks proxy, currently can only recommend a workaround via: hpts -s socksProxy:socksPort -p 8888 using http-proxy-to-socks.
Best would be a migration away from request to got or some client which has better proxy support.
This landed on both release lines in #2091 and #2111.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
Activity
brendandburns commentedon Aug 8, 2022
Relevant pointers:
This really points out the need for a clean spec for the kubeconfig file, since this never went through a KEP or anything else and just merged.
I'm happy to take a PR to add support for this, otherwise, we will get to it eventually.
dgolovin commentedon Aug 15, 2022
Full implementation, obviously, is going to take time. Is that possible to start applying some fixes related to this issue? For example, stop filtering 'proxy-url' property while loading cluster configuration from config here.
mstruebing commentedon Aug 17, 2022
I would like to try to provide a PR for this.
Could someone recommend a way to set up a test environment for this?
Would it be correct to assume that if I have a Kubernetes cluster and do a
kubectl proxy --port <number>and set the proxy URL tohttp://127.0.01:<number>in my kubeconfig that this is a valid way to test this?Or do I need to set up a nginx reverse proxy for this?
k8s-triage-robot commentedon Feb 7, 2023
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the PR is closedYou can:
/remove-lifecycle stale/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
bradyburke commentedon Feb 10, 2023
Any update on this? I am running into the same issue
bradyburke commentedon Feb 22, 2023
/remove-lifecycle stale
bradyburke commentedon Feb 22, 2023
Any update on this issue?
himanshusharma27 commentedon Apr 3, 2023
please assign me this issue.
SD007CSE commentedon Apr 17, 2023
/assign
SD007CSE commentedon May 10, 2023
I am having an issue for

kube testandkube run docsSD007CSE commentedon May 10, 2023
@brendandburns Help me out
j4acks0n commentedon May 14, 2023
Hello Mybe You Can Try
import { BsModalModule } from 'ng2-bs3-modal';
Mybe This Will Help
j4acks0n commentedon May 14, 2023
SD007CSE commentedon May 15, 2023
Actually in most of the .ts files which have "/api" it showing the the problem Module `'"./api"' has no exported member 'V1Secret'.ts(2305)``
geisbruch commentedon May 21, 2024
Hi Guys ! Until this is solved I did a simple hack to be able to use proxy-url. I've override the KubeConfig makeApiClient method to be able to override the "request" configuration. It's not super safe but runs
Here the code
kc1r74p commentedon Aug 18, 2024
Thanks for your initial workaround.
Still had issues when using
k8s.Log(kc);as it seems not to apply to all requests.Solved it for me using:
Works for normal api calls and log.
In case someone also wants to use a socks proxy, currently can only recommend a workaround via:
hpts -s socksProxy:socksPort -p 8888usinghttp-proxy-to-socks.Best would be a migration away from
requesttogotor some client which has better proxy support.krmodelski commentedon Dec 4, 2024
/assign
cjihrig commentedon Dec 20, 2024
This landed on both release lines in #2091 and #2111.
/close
k8s-ci-robot commentedon Dec 20, 2024
@cjihrig: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.