diff --git a/charts/keycloak/templates/route.yaml b/charts/keycloak/templates/route.yaml index 9507d565..2c409056 100644 --- a/charts/keycloak/templates/route.yaml +++ b/charts/keycloak/templates/route.yaml @@ -21,7 +21,11 @@ spec: {{- end }} path: {{ $route.path }} port: + {{- if or (not $route.tls.enabled) (eq $route.tls.termination "edge") }} targetPort: http + {{- else}} + targetPort: https + {{- end}} to: kind: Service name: {{ include "keycloak.fullname" $ }}-http