Skip to content

Commit 0a3e8ac

Browse files
authored
Aligned KC_BOOTSTRAP_ADMIN_USERNAME and KC_BOOTSTRAP_ADMIN_PASSWORD env variables names. (#727)
Uses KC_PROXY_HEADERS env variable: works both on crc and ROSA on AWS. Closes #44951 : "keycloak guides on Getting Started > Openshift with issues" Signed-off-by: Daniele Mammarella <[email protected]>
1 parent 9fce56a commit 0a3e8ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

openshift/keycloak.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ objects:
5959
spec:
6060
containers:
6161
- env:
62-
- name: KEYCLOAK_ADMIN
63-
value: '${KEYCLOAK_ADMIN}'
64-
- name: KEYCLOAK_ADMIN_PASSWORD
65-
value: '${KEYCLOAK_ADMIN_PASSWORD}'
66-
- name: KC_PROXY
67-
value: 'edge'
62+
- name: KC_BOOTSTRAP_ADMIN_USERNAME
63+
value: '${KC_BOOTSTRAP_ADMIN_USERNAME}'
64+
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
65+
value: '${KC_BOOTSTRAP_ADMIN_PASSWORD}'
66+
- name: KC_PROXY_HEADERS
67+
value: 'forwarded'
6868
image: quay.io/keycloak/keycloak:26.4.7
6969
livenessProbe:
7070
failureThreshold: 100
@@ -101,13 +101,13 @@ parameters:
101101
description: The name for the application.
102102
value: keycloak
103103
required: true
104-
- name: KEYCLOAK_ADMIN
104+
- name: KC_BOOTSTRAP_ADMIN_USERNAME
105105
displayName: Keycloak Administrator Username
106106
description: Keycloak Server administrator username
107107
generate: expression
108108
from: '[a-zA-Z0-9]{8}'
109109
required: true
110-
- name: KEYCLOAK_ADMIN_PASSWORD
110+
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
111111
displayName: Keycloak Administrator Password
112112
description: Keycloak Server administrator password
113113
generate: expression

0 commit comments

Comments
 (0)