Both are running on an EKS cluster. Every other microservice is working fine through the Ingress. I've tried both a Keycloak helm chart and a manual install, but I cannot get passed this redirect issue. Using kubectl port-forward
I can access the dashboard etc just fine.
Using the codecentric helm chart, I am passing these extraEnv
s
extraEnv: |
- name: PROXY_ADDRESS_FORWARDING
value: "true"
- name: KEYCLOAK_HOSTNAME
value: "http://ab12de4e5e0014cce978ff01da712b39-630471733.eu-west-1.elb.amazonaws.com"
- name: KEYCLOAK_FRONTEND_URL
value: "http://ab12de4e5e0014cce978ff01da712b39-630471733.eu-west-1.elb.amazonaws.com/v1/auth"
The only advice I can find for this issue is to enable PROXY_ADDRESS_FORWARDING
which I have, with no result.
I've tried pointing Nginx
to the service.yaml
that comes with the chart, as well as writing me own like:
apiVersion: v1
kind: Service
metadata:
name: keycloak-service
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
type: ClusterIP
selector:
app: keycloak-dev-cluster-0
The issue:
If the Nginx path in the ingress.yaml
is /v1/auth
, the keycloak does respond and sends a redirect to /auth
which then 404s
.
If the Nginx path is /auth
this will cause an infinite loop.
How do I get it to route correctly?