NGINX "proxy_pass" for a "Passthrough" Route does not work

Solution Verified - Updated -

Issue

  • Given two Pods that are both exposed by Routes with TLS Passthrough termination, when proxying a request from Pod A to Pod B via a location /proxy/ and proxy_pass directive in NGINX, a call to Pod A "/proxy/hello" doesn't work and returns the following error message:

    Route and path matches, but all pods are down.
    

    The expectations is that this would return "Hello from B".

  • We are using the following NGINX proxy_pass configuration, but requesting a Route with "Passthrough" or "Reencrypt" will return an error from the OpenShift Router:

    location /proxy/ {
      proxy_pass https://passthrough-route-mynamespace.lab.example.com/;
    }
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.5
  • rhscl/nginx-116-rhel7 container image

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content