Re: Reverse Proxy using Nginx

2018-03-20 Thread Gaurav Ojha
Oh yes, it is solved. Should have mentioned that previously. Sorry about
that.

Regards
Gaurav

On Tue, Mar 20, 2018, 4:05 PM Joel Pearson 
wrote:

> So your problem is solved then?
> On Wed, 21 Mar 2018 at 4:47 am, Gaurav Ojha  wrote:
>
>> Hi,
>>
>> Thanks for the reply. I have router, but have a bunch of APIs behind
>> gunicorn which I wanted to route through nginx.
>>
>> I deployed a nginx image and am using it.
>>
>> On Tue, Mar 20, 2018, 9:43 AM Joel Pearson 
>> wrote:
>>
>>> What do you want Nginx for? OpenShift has a component called the Router
>>> which routes traffic. It is based on Haproxy. You could run an nginx
>>> container that the router will send traffic to, but if you’re just trying
>>> to expose other apps. Then just use the built in Router.
>>>
>>> Unless you’re talking about the kubernetes reference nginx ingress
>>> controller?
>>> On Sat, 17 Mar 2018 at 5:05 am, Gaurav Ojha 
>>> wrote:
>>>
 Hello,

 I have a single host OpenShift cluster. Is it possible to install Nginx
 (run it as a docker image) and route traffic using Nginx?

 If so, can someone point out the configurations for NO_PROXY and
 HTTP_PROXY in this case?

 I dont want any OpenShift instance IP managed by OpenShift. What I am
 confused about is this part of the document

 HTTP_PROXY=http://:@:/
 HTTPS_PROXY=https://:@:/
 NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16


 It mentions that NO_PROXY has the hostname of the master included in
 NO_PROXY. But since my cluster only has 1 host, so all my routes are
 managed through that hostname. In this case, do I just assign some random
 routes, and route through Nginx?

 Regards

 ___
 users mailing list
 users@lists.openshift.redhat.com
 http://lists.openshift.redhat.com/openshiftmm/listinfo/users

>>>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Reverse Proxy using Nginx

2018-03-20 Thread Joel Pearson
So your problem is solved then?
On Wed, 21 Mar 2018 at 4:47 am, Gaurav Ojha  wrote:

> Hi,
>
> Thanks for the reply. I have router, but have a bunch of APIs behind
> gunicorn which I wanted to route through nginx.
>
> I deployed a nginx image and am using it.
>
> On Tue, Mar 20, 2018, 9:43 AM Joel Pearson 
> wrote:
>
>> What do you want Nginx for? OpenShift has a component called the Router
>> which routes traffic. It is based on Haproxy. You could run an nginx
>> container that the router will send traffic to, but if you’re just trying
>> to expose other apps. Then just use the built in Router.
>>
>> Unless you’re talking about the kubernetes reference nginx ingress
>> controller?
>> On Sat, 17 Mar 2018 at 5:05 am, Gaurav Ojha  wrote:
>>
>>> Hello,
>>>
>>> I have a single host OpenShift cluster. Is it possible to install Nginx
>>> (run it as a docker image) and route traffic using Nginx?
>>>
>>> If so, can someone point out the configurations for NO_PROXY and
>>> HTTP_PROXY in this case?
>>>
>>> I dont want any OpenShift instance IP managed by OpenShift. What I am
>>> confused about is this part of the document
>>>
>>> HTTP_PROXY=http://:@:/
>>> HTTPS_PROXY=https://:@:/
>>> NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16
>>>
>>>
>>> It mentions that NO_PROXY has the hostname of the master included in
>>> NO_PROXY. But since my cluster only has 1 host, so all my routes are
>>> managed through that hostname. In this case, do I just assign some random
>>> routes, and route through Nginx?
>>>
>>> Regards
>>>
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Reverse Proxy using Nginx

2018-03-20 Thread Gaurav Ojha
Hi,

Thanks for the reply. I have router, but have a bunch of APIs behind
gunicorn which I wanted to route through nginx.

I deployed a nginx image and am using it.

On Tue, Mar 20, 2018, 9:43 AM Joel Pearson 
wrote:

> What do you want Nginx for? OpenShift has a component called the Router
> which routes traffic. It is based on Haproxy. You could run an nginx
> container that the router will send traffic to, but if you’re just trying
> to expose other apps. Then just use the built in Router.
>
> Unless you’re talking about the kubernetes reference nginx ingress
> controller?
> On Sat, 17 Mar 2018 at 5:05 am, Gaurav Ojha  wrote:
>
>> Hello,
>>
>> I have a single host OpenShift cluster. Is it possible to install Nginx
>> (run it as a docker image) and route traffic using Nginx?
>>
>> If so, can someone point out the configurations for NO_PROXY and
>> HTTP_PROXY in this case?
>>
>> I dont want any OpenShift instance IP managed by OpenShift. What I am
>> confused about is this part of the document
>>
>> HTTP_PROXY=http://:@:/
>> HTTPS_PROXY=https://:@:/
>> NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16
>>
>>
>> It mentions that NO_PROXY has the hostname of the master included in
>> NO_PROXY. But since my cluster only has 1 host, so all my routes are
>> managed through that hostname. In this case, do I just assign some random
>> routes, and route through Nginx?
>>
>> Regards
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Reverse Proxy using Nginx

2018-03-20 Thread Joel Pearson
What do you want Nginx for? OpenShift has a component called the Router
which routes traffic. It is based on Haproxy. You could run an nginx
container that the router will send traffic to, but if you’re just trying
to expose other apps. Then just use the built in Router.

Unless you’re talking about the kubernetes reference nginx ingress
controller?
On Sat, 17 Mar 2018 at 5:05 am, Gaurav Ojha  wrote:

> Hello,
>
> I have a single host OpenShift cluster. Is it possible to install Nginx
> (run it as a docker image) and route traffic using Nginx?
>
> If so, can someone point out the configurations for NO_PROXY and
> HTTP_PROXY in this case?
>
> I dont want any OpenShift instance IP managed by OpenShift. What I am
> confused about is this part of the document
>
> HTTP_PROXY=http://:@:/
> HTTPS_PROXY=https://:@:/
> NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16
>
>
> It mentions that NO_PROXY has the hostname of the master included in
> NO_PROXY. But since my cluster only has 1 host, so all my routes are
> managed through that hostname. In this case, do I just assign some random
> routes, and route through Nginx?
>
> Regards
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Reverse Proxy using Nginx

2018-03-16 Thread Gaurav Ojha
Hello,

I have a single host OpenShift cluster. Is it possible to install Nginx
(run it as a docker image) and route traffic using Nginx?

If so, can someone point out the configurations for NO_PROXY and HTTP_PROXY
in this case?

I dont want any OpenShift instance IP managed by OpenShift. What I am
confused about is this part of the document

HTTP_PROXY=http://:@:/
HTTPS_PROXY=https://:@:/
NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16


It mentions that NO_PROXY has the hostname of the master included in
NO_PROXY. But since my cluster only has 1 host, so all my routes are
managed through that hostname. In this case, do I just assign some random
routes, and route through Nginx?

Regards
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users