Kubernetes version: Client Version: v1.19.7
Server Version: v1.19.16
Cloud being used: (put bare-metal if not on a public cloud) Rancher
Installation method: Terraform
Host OS: control plane Centos7, worker nodes Centos 8
CNI and version: flannel 0.15.1
CRI and version: docker 20.10.6
One of our kuberenetes cluster (Opensearch) , nslookup of Ingress (Dashboard url) resolves to all the backend Pod’s ip. But we want to avoid that and it should resolves a single ip not any pod’s ip. In current set up , we are using ingressClassName: “nginx”.
Do we need to use any customize nginx set up and any redirection.
This is entirely dependent on the environment you run in and
controller you use. Do you have a programmable load-balancer that can
offer a VIP to your network?
Those clients do a name lookup and get back an IP.
They send a packet to that IP.
Where does that IP actually go in your setup? For example, in Google Cloud it goes to a cloud load-balancer, which has been programmed with all of the backend IPs.
ingress-nginx, by default, can’t assume a Google Cloud LB or an AWS LB, so it does what it can - node IPs.
I am not an ingress-nginx expert, but you need to be able to answer this before you can try to change how it works by default.