Hi @AjitKS ,
I suppose that your issue is due the fact the request start in the pod A and the redirect goes to the pod B, so they can't finish the login properly.
A suggestion that could help you to solve this issue, try to add a stick session on your ingress, this sticks the current session in a specific pod and will resolve your issue.
Here is a snipped of the configuration:
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
nginx.ingress.kubernetes.io/affinity-mode: persistent