79207802

Date: 2024-11-20 15:14:34
Score: 0.5
Natty:
Report link

If I understand you correctly, you would like to expose the external endpoint through an ingress, so no proxy would be needed when using the ingress endpoint, right?

Wouldn't it be easiest to use the proxy directly in the internal client?

E.g. if it would be cURL, by setting http_proxy and https_proxy environment variables like here or in case of java, by setting java command line options -Dhttp.proxyHost=<proxy-ip/hostname> -Dhttp.proxyPort=<proxy-port>?

Or don't you have any control of the internal client?

If I understood your question correctly, I don't think you would use k8s tooling to achieve that.

ExternalName-type Kubernetes services are basically just a CNAME record and this DNS record would then be known inside the cluster. You cannot do any HTTP-based alterations like proxying with CNAME records. You would need to setup another pod/deployment doing the proxying for you, basically setting up another proxy to use the proxy - which would be overkill imho.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Robert