Attempting to deploy an external app into a corporate k8s cluster. All egress traffic leaving this external app has to go through the corporate proxy before getting to the internet. The issue is that the application does not have built in env variable support for the proxy. So setting http_proxy
etc is not picked up and is not used by the application and we cannot modify the code to respect the env variables.
Our thought was to implement a transparent proxy that would intercept all outgoing traffic from the external application pod, re-route to the corporate proxy and then finally to the external internet address. Is there any software that would be able to be configured in the k8s as a transparent proxy while also having the ability to forward the request to the corporate proxy?
We attempted to use nginx but the main issue is that it doesn't seem to be able to be configured to use the corporate proxy. We had successfully configured nginx to use proxy_pass
and re-route the request to the correct external URL but it was not using the proxy and subsequently received timeouts.
Any suggestions are appreciated.