I have configured nginx as reverse proxy one pod in openshift and nginx webserver in another pod.
I am able to curl each service individually (proxy, webserver) but i am unable to proxy my request to webserver.
I mean , When I curl nginx proxy url it should show nginx webserver page, rather than showing its own page.
the link to our config/yaml files are below:
2
Answers
OpenShift comes with a router out of the box, which is RedHat’s abstraction of an ingress.
Using nginx as a router has been an option during OpenShift v3 but is not supported (or working) in the v4 Architecture.
However, what your are trying to do, can be achieved by using
route
.The documentation guides you along.
With your current deployment you can try it out like follows:
This will create a route with a subdomain to your clusters domain, making your webserver available
Sorry to hear that you are having problems with the nginx operator. I’ve just tried the nginx operator myself and it seems to be working fine actually. However it was also updated a couple of days you posted, currently running at version 0.5.0. Maybe try again? If it still doesn’t work and you have OpenShift subscription, you can actually open a support case with Red Hat on this. All certified operators, like nginx, come with first-level support triage.
PS: I am Product Manager at Red Hat, associated with that part of OpenShift.