headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
1.81k stars 135 forks source link

Proxy Support #1966

Open lupaulus opened 2 months ago

lupaulus commented 2 months ago

Hey very nice project,

It is possible to add proxy settings to use the software inside a corporate proxy network ?

Greetings,

joaquimrocha commented 2 months ago

@lupaulus You mean the desktop version, right? (Just to be sure)

lupaulus commented 2 months ago

Yes headlamp desktop

yolossn commented 2 weeks ago

Hey @lupaulus May I know how do you setup proxy for other tools(like kubectl) that interact with the cluster? I was wondering if this can be solved by using the proxy-url config that is supported by kubeconfig . Refer

lupaulus commented 1 week ago

With K9s, I setup two entry variable at the startup like in linux : http_proxy=<http_proxy> https_proxy=<https_proxy>

omniproc commented 1 week ago

proxy support would require at least http_proxy, https_proxy and no_proxy env vars to be configurable. However please be aware that there is no format syntax definition for the values of those environment variables. Also you might want to add those options to the headlamp settings because you might want different proxy settings for headlamp instead using global environment variables (not a big deal on Linux, but on other platforms it is).