Hi lua noobie here,
First of all, thank you for this awesome plugin.
I have headless services(DNS resolution will give all service's ips) in Kubernetes and want to have sticky sessions on that. Unfortunately, this is not possible with Nginx OSS. So while looking through openresty, I've found this plugin.
As of now, I use resolver=local (in openresty) settings in Kubernetes, because it'll work on any Kubernetes cluster the app gets installed. Now the issue is, is there any way not to give static DNS resolver addresses?
for example, in this code
master_dns = dns_resolver.new_master{
cache = "dns_cache", upstream_domain = "upstream.ddnsr-demo.com", dns_servers = {"172.20.0.2"}
}
Is there any way to avoid the 172.20.0.2 ?
Any help is appreciated.
Hi lua noobie here,
First of all, thank you for this awesome plugin.
I have headless services(DNS resolution will give all service's ips) in Kubernetes and want to have sticky sessions on that. Unfortunately, this is not possible with Nginx OSS. So while looking through openresty, I've found this plugin.
As of now, I use
resolver=local(in openresty) settings in Kubernetes, because it'll work on any Kubernetes cluster the app gets installed. Now the issue is, is there any way not to give static DNS resolver addresses?for example, in this code
Is there any way to avoid the
172.20.0.2?Any help is appreciated.