pgadmin4 behind haproxy and nginx
I have the following setup with the pgadmin4 container where it runs in a kubernetes environment but should be accessed using a ha-proxy, as follows:
[client] <---> [haproxy] <---> [nginx ingress] <--->[k8s-service] <---> [pgadmin4 container]
This setup is not working as expected because the pgadmin4 backend resets the cookies all the time causing an infinite redirection loop.
I tried to set the PROXY_X variables, but with no success.
How can I make the pgadmin4 container aware of the situation?
Thnx in advance!
Why do you have both HAProxy and an nginx ingress?
The Kubernetes Cluster is running in a private Network. All services that should be reachable from public networks are encapsulated by a gateway, which is the place where the haproxy runs.
I solved this situation currently by port-forwarding with iptables.