I have a web-ui, oauth2-proxy and Keycloak running a as Kubernetes apps; web-ui and oauth2 are behind the ingress-nginx
and keycloak is exposed through NodePort.
These are the endpoints I'm using:
- web-ui:
https://ui.mydomain.uk.local
- oauth2:
https://ingress.mydomain.uk.local/oauth2
- keycloak:
http://ingress.mydomain.uk.local:8080
If I use https://ingress.mydomain.uk.local/oauth2/start
I get the keycloak login page but targeting the web-ui, ends up with 500
error. I cannot copy (and paste) from the environment I'm running the actual code, but here is the screenshots of my configs:
oauth2-proxy deployment:
oauth2-proxy Ingress:
web-ui Ingress:
When point to https://ui.mydomain.uk.local
, looks like it's actually hitting the oauth2-proxy:
but ends up with 500 in the end. Below is the log from ingress-controller:
Can anyone spot what I'm doing wrong or missing from my configuration? I tried to search the internet as much as I could but none of the suggestions actually helped. Could anyone give me a bit of hands please? Any help will be really appreciated.