crunchy-containers icon indicating copy to clipboard operation
crunchy-containers copied to clipboard

pgadmin4 behind haproxy and nginx

Open SockenSalat opened this issue 5 years ago • 2 comments

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!

SockenSalat avatar Dec 07 '20 10:12 SockenSalat

Why do you have both HAProxy and an nginx ingress?

jkatz avatar Dec 07 '20 14:12 jkatz

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.

SockenSalat avatar Dec 07 '20 14:12 SockenSalat