GRPC C++ Client getting 404 error when connecting through nginx ingress controller in kubernetes (Scenario: Nginx ingress controller reload frequency since new ingress is configured for every second)

Hi, i have scenario where main pod will create a service, pod and ingress dynamically and client will try to connect to the dynamically created pod through ingress. When i am trying to connect grpc c++ client i am getting 404 error. I suspect the problem could be nginx ingress controller reloading? Could anyone help on this?

Cluster information:

Kubernetes version: v1.25
Cloud being used: (put bare-metal if not on a public cloud) bare metal
Installation method: kubeadm init
Host OS: rhel 8
CNI and version: Calico
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.