Skip to content

Commit 7475491

Browse files
lllamnyplexfrei
authored andcommitted
fix(keycloak): point HTTPRoute backends at the service port
The keycloak-http Service only exposes port 8080, but every HTTPRoute backendRef referenced port 80. The Gateway API resolves backendRefs against the Service's declared ports, so the route had no valid backend and envoy answered 503 for all Keycloak hostnames whenever gateway-enabled is true. The Ingress template is unaffected: it references the port by name (http). Signed-off-by: Timofei Larkin <[email protected]>
1 parent 28a59da commit 7475491

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/system/keycloak/templates/httproute.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ spec:
3636
value: /.well-known
3737
backendRefs:
3838
- name: keycloak-http
39-
port: 80
39+
port: 8080
4040
{{- else }}
4141
- backendRefs:
4242
- name: keycloak-http
43-
port: 80
43+
port: 8080
4444
{{- end }}
4545
{{- if $adminHost }}
4646
---
@@ -62,6 +62,6 @@ spec:
6262
rules:
6363
- backendRefs:
6464
- name: keycloak-http
65-
port: 80
65+
port: 8080
6666
{{- end }}
6767
{{- end }}

0 commit comments

Comments
 (0)