Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgadmin4 behind haproxy and nginx #1302

Open
SockenSalat opened this issue Dec 7, 2020 · 2 comments
Open

pgadmin4 behind haproxy and nginx #1302

SockenSalat opened this issue Dec 7, 2020 · 2 comments

Comments

@SockenSalat
Copy link

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!

@jkatz
Copy link
Contributor

jkatz commented Dec 7, 2020

Why do you have both HAProxy and an nginx ingress?

@SockenSalat
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants