Closed
Description
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
** Example Code**
const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
k8sApi.listNamespacedPod('default').then((res) => {
console.log(res.body);
}).catch(console.error);
Environment (please complete the following information):
- OS: Linux
- NodeJS Version 12.10.0