Welcome! Log In Create A New Profile

Advanced

How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

Marwan Bayadsi
September 17, 2018 08:20AM
Hi,

We're from Amdocs and trying to install NGINX reverse proxy server on openshift cluster (6 nodes), and as part of its configuration, we must specify the DNS IP to directive - 'resolver' (because proxy_pass has some parameters).
Nginx.conf:
Location ~ {
resolver DNS_IP valid=5s;
proxy_pass .....
}
But - since it's OCP cluster (multiple machines), we don't know which IP to give - as it depends on which node the nginx pod was started (in /etc/resolv.conf - it has the relevant node IP). Also - we cannot put all IPs in parameters.
We ask for advice to:

1. How we can force nginx to user /etc/resolv.conf even if proxy_pass has parameters. This will solve our issues.

2. If #1 is not possible, which display name we can put for resolver within open-shift cluster ? for example - in K8S, we solved the issue by using kube-dns:
resolver kube-dns.kube-system.svc.cluster.local valid=5s;

Which string is relevant for DNS inside open-shift cluster ?

Please assist.


Thanks,
Marwan

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer https://www.amdocs.com/about/email-disclaimer
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

Marwan Bayadsi September 17, 2018 08:20AM

Re: How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

swati November 06, 2018 12:33AM

Re: How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

swati November 06, 2018 12:53AM

Re: How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

Tyler_durden_83 May 22, 2020 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready