Skip to content

Commit

Permalink
Start keycloak in prod mode (#959)
Browse files Browse the repository at this point in the history
* Start keycloak in prod mode

* Set hostname-admin url as well, refactor helm template

* Comment out debug settings
  • Loading branch information
corneliusroemer authored Feb 10, 2024
1 parent 94a57c5 commit 10ee714
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion kubernetes/loculus/templates/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{{- define "keycloakUrl" -}}
{{- if eq .Values.environment "server" -}}
{{- printf "https://authentication-%s" .Values.host -}}
{{- else if .Values.codespaceName -}}
{{- printf "https://%s-8083.app.github.dev" .Values.codespaceName -}}
{{- else -}}
{{- "http://localhost:8083" -}}
{{- end -}}
{{- end -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -38,9 +48,16 @@ spec:
value: "edge"
- name: KC_HEALTH_ENABLED
value: "true"
# - name: KC_LOG_LEVEL
# value: "DEBUG"
- name: KC_HOSTNAME_URL
value: "{{ include "keycloakUrl" . }}"
- name: KC_HOSTNAME_ADMIN_URL
value: "{{ include "keycloakUrl" . }}"
args:
- "start-dev"
- "start"
- "--import-realm"
# - "--hostname-debug=true"
ports:
- containerPort: 8080
volumeMounts:
Expand Down

0 comments on commit 10ee714

Please sign in to comment.