How to use Ngnix as a reverse proxy to access OpenShift (OKD) 4.X? #784
-
How to use Ngnix as a reverse proxy to access OpenShift (OKD) 4.X? I've tried hundreds of setups for the reverse proxy (Nginx) and they all fail with the error "Application is not available" when we access the oauth-openshift.apps.mbr.some.dm route. NOTE: This problem does not occur if we access this route directly (without using Reverse Proxy). Perhaps some information necessary for the route to be resolved is not being sent. This is the basic configuration template we are using...
We also tested these parameters and got some problems as you can see below...
The certificates apps.mbr.some.dm.crt, apps.mbr.some.dm.key, apps.mbr.some.dm.crt.key.pem are the self-signed certificates used by OpenShift (OKD) to allow access to resources (HTTPS). However if we try to use these certificates with the reverse proxy (Nginx) the following error happens ("Bad Gateway")...
NOTA: We tested the apps.mbr.some.dm.crt and apps.mbr.some.dm.crt.key.pem certificates using curl and both worked perfectly. PLUS: We couldn't define a way to diagnose/observe (logs) about what goes wrong when the request arrives the route oauth-openshift.apps.mbr.some.dm . I think this would help us figure out what's going wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Well, from the lack of answers I can assume that OpenShift (OKD) is incapable to work behind a reverse proxy, right? Thanks! =D |
Beta Was this translation helpful? Give feedback.
-
OKD behind haproxy or F5 is the standard
:peter pfläging
(gesendet von einem Gerät mit kleiner virtueller Tastatur und viel zu großen Fingern)
***@***.***
📞+43 699 1410 7990
🏠 In den Jochen 49, A-2122 Ulrichskirchen, Austria
🌍 http://www.pflaeging.net/
… Am 23.07.2021 um 19:24 schrieb Eduardo Lúcio Amorim Costa ***@***.***>:
Well, from the lack of answers I can assume that OpenShift (OKD) is incapable to work behind a reverse proxy, right?
Thanks! =D
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
Thank you Peter @pflaeging !
Do you have any clue as to why the error "Application is not available"
occurs?
Would you know how I can find out (basically logs) what is going wrong in
OpenShift (OKD) for the "oauth-openshift.apps.mbr.some.dm" route?
*Thank you very much! =D*
Em sex., 23 de jul. de 2021 às 14:30, Peter Pflaeging <
***@***.***> escreveu:
… OKD behind haproxy or F5 is the standard
:peter pfläging
(gesendet von einem Gerät mit kleiner virtueller Tastatur und viel zu
großen Fingern)
***@***.***
📞+43 699 1410 7990
🏠 In den Jochen 49, A-2122 Ulrichskirchen, Austria
🌍 http://www.pflaeging.net/
> Am 23.07.2021 um 19:24 schrieb Eduardo Lúcio Amorim Costa ***@***.***>:
>
>
> Well, from the lack of answers I can assume that OpenShift (OKD) is
incapable to work behind a reverse proxy, right?
>
> Thanks! =D
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#784 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRX4JKEN5WHTIC5YD6JBULTZGRLRANCNFSM5AZHEE3Q>
.
--
*Eduardo Lúcio*
Tecnologia, Desenvolvimento e Software Livre
LightBase Consultoria em Software Público
***@***.*** <[email protected]>
*+55-61-3347-1949* - http://brlight.org <[email protected]> -
*Brasil-DF*
*Software livre! Abrace essa idéia!*
*"Aqueles que negam liberdade aos outros não a merecem para si mesmos."*
*Abraham Lincoln*
|
Beta Was this translation helpful? Give feedback.
-
From Larry Brigman [email protected] (okd-wg)
|
Beta Was this translation helpful? Give feedback.
-
People! We confirm that the problem "Application is not available" only occurs in the route "oauth-openshift" ( oauth-openshift.apps.mbr.some.dm ) can any human being say why this problem is occurring specifically for this route? NOTE: If we log into the "oauth-openshift" route using an SSH tunnel, for example, we can use all other resources via reverse proxy []'s |
Beta Was this translation helpful? Give feedback.
-
Solution here! []'s |
Beta Was this translation helpful? Give feedback.
Solution here!
https://github.com/eduardolucioac/okd_bare_metal#create-configuration-to-nginx-reverse-proxy-openshift-okd-nginx_reverse_proxy
[]'s