Skip to content

Update Examples for the Latest Version of Keycloak #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions kustomize/keycloak/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ spec:
args: ["start-dev"]
name: keycloak
env:
- name: DB_VENDOR
- name: KC_DB
value: "postgres"
- name: DB_ADDR
- name: KC_DB_URL_HOST
valueFrom: { secretKeyRef: { name: keycloakdb-pguser-keycloakdb, key: host } }
- name: DB_PORT
- name: KC_DB_URL_PORT
valueFrom: { secretKeyRef: { name: keycloakdb-pguser-keycloakdb, key: port } }
- name: DB_DATABASE
- name: KC_DB_URL_DATABASE
valueFrom: { secretKeyRef: { name: keycloakdb-pguser-keycloakdb, key: dbname } }
- name: DB_USER
- name: KC_DB_USERNAME
valueFrom: { secretKeyRef: { name: keycloakdb-pguser-keycloakdb, key: user } }
- name: DB_PASSWORD
- name: KC_DB_PASSWORD
valueFrom: { secretKeyRef: { name: keycloakdb-pguser-keycloakdb, key: password } }
- name: KEYCLOAK_ADMIN
- name: KC_BOOTSTRAP_ADMIN_USERNAME
value: "admin"
- name: KEYCLOAK_ADMIN_PASSWORD
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
value: "admin"
- name: KC_PROXY
value: "edge"
- name: KC_PROXY_HEADERS
value: "xforwarded"
ports:
- name: http
containerPort: 8080
Expand Down
2 changes: 2 additions & 0 deletions kustomize/keycloak/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: keycloakdb
annotations:
postgres-operator.crunchydata.com/autoCreateUserSchema: "true"
spec:
postgresVersion: 17
instances:
Expand Down
4 changes: 3 additions & 1 deletion kustomize/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo
annotations:
postgres-operator.crunchydata.com/autoCreateUserSchema: "true"
spec:
postgresVersion: 17
users:
- name: rhino
- name: hippo
databases:
- zoo
instances:
Expand Down