Replies: 3 comments 3 replies
-
That is correct, the proxy type is not currently a config value.
I think what you are trying to do is achievable with each of the client types, you aren't restricted to okhttp. Both okhttp and jdk will rely upon system variables to setup the proxy selector - https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html#Proxies - the only issue being is that both implementations will currently set the proxy on their respective builders to NO_PROXY if a proxy address is not specified. You would have to inhibit that or set the proxy to null - see the XXXHttpClientFactory.addtionalConfig method for access to the underlying client builder.
|
Beta Was this translation helpful? Give feedback.
-
Hi @shawkins, thanks for the hint. I tried as you suggested above, but with
But when using the built P.S. before DefaultKubernetesClient was deprecated, it was simply working by
|
Beta Was this translation helpful? Give feedback.
-
Just checked with jdk http client...seems also not support socks proxy..there is a open ticket just from 2018 (wow) So I stick to my deprecated approach which at least works. |
Beta Was this translation helpful? Give feedback.
-
Hi,
using io.fabric8:kubernetes-client:6.3.1 and only have seen http/https proxy configs but not for socks proxy
neither in io.fabric8.kubernetes.client.Config nor in io.fabric8.kubernetes.client.http.HttpClient.Builder#proxyAddress (protocol cannot be specified)
Or is there some sample code how to build an okHttpClient object and how to define it to be used by KubernetesClient?
Beta Was this translation helpful? Give feedback.
All reactions