Skip to content

Commit

Permalink
The initial admin password is now provided to the deployment externally
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Aug 4, 2023
1 parent d5fcbdc commit d0de303
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Secret
metadata:
labels:
app: keycloak
name: keycloak-initial-admin
name: keycloak-preconfigured-admin
namespace: {{ .Values.namespace }}
type: kubernetes.io/basic-auth
data:
Expand Down
13 changes: 13 additions & 0 deletions provision/minikube/keycloak/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@ spec:
# See: https://github.com/keycloak/keycloak/issues/21962
- name: 'QUARKUS_THREAD_POOL_QUEUE_SIZE'
value: '1000'
# We want to have an externally provided username and password, therefore, we override those two environment variables
- name: KEYCLOAK_ADMIN
valueFrom:
secretKeyRef:
name: keycloak-preconfigured-admin
key: username
optional: false
- name: KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: keycloak-preconfigured-admin
key: password
optional: false
{{ if .Values.otel }}
# Instrumentation for the HTTP/2 protocol doesn't work yet - no metrics will be available, probably also no tracing
# As a workaround, force downgrade to HTTP/1.1
Expand Down

0 comments on commit d0de303

Please sign in to comment.