Skip to content

Commit

Permalink
Add sample Openshift configmaps and secrets for Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkikos committed Dec 11, 2024
1 parent 15904dd commit 6448630
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions keycloak/openshift/rahti2/configmap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sample configmaps. Update values according to deployment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: 'keycloak-configmap-devel'
namespace: researchfi-devel
data:
KC_LOG_SYSLOG_TYPE: rfc5424
KC_LOG_SYSLOG_OUTPUT: json
KC_HOSTNAME_ADMIN: 'https://<keycloak URL here>'
KC_PROXY_HEADERS: xforwarded
KC_LOG_SYSLOG_APP_NAME: keycloak-devel
KC_HTTP_ENABLED: 'true'
KC_HOSTNAME: 'https://<keycloak URL here>'
KC_LOG_SYSLOG_ENDPOINT: 'logstash-devel.researchfi-devel.svc.cluster.local:8080'
KC_LOG: 'console,syslog'
KC_LOG_SYSLOG_PROTOCOL: tcp
binaryData: {}
immutable: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: 'keycloak-configmap-production'
namespace: researchfi-production
data:
KC_LOG_SYSLOG_TYPE: rfc5424
KC_LOG_SYSLOG_OUTPUT: json
KC_HOSTNAME_ADMIN: 'https://<keycloak URL here>'
KC_PROXY_HEADERS: xforwarded
KC_LOG_SYSLOG_APP_NAME: keycloak-production
KC_HTTP_ENABLED: 'true'
KC_HOSTNAME: 'https://<keycloak URL here>'
KC_LOG_SYSLOG_ENDPOINT: 'logstash-production.researchfi-production.svc.cluster.local:8080'
KC_LOG: 'console,syslog'
KC_LOG_SYSLOG_PROTOCOL: tcp
binaryData: {}
immutable: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: 'keycloak-configmap-qa'
namespace: researchfi-qa
data:
KC_LOG_SYSLOG_TYPE: rfc5424
KC_LOG_SYSLOG_OUTPUT: json
KC_HOSTNAME_ADMIN: 'https://<keycloak URL here>'
KC_PROXY_HEADERS: xforwarded
KC_LOG_SYSLOG_APP_NAME: keycloak-qa
KC_HTTP_ENABLED: 'true'
KC_HOSTNAME: 'https://<keycloak URL here>'
KC_LOG_SYSLOG_ENDPOINT: 'logstash-qa.researchfi-qa.svc.cluster.local:8080'
KC_LOG: 'console,syslog'
KC_LOG_SYSLOG_PROTOCOL: tcp
binaryData: {}
immutable: false
1 change: 1 addition & 0 deletions keycloak/openshift/rahti2/secret/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sample secrets. Update values according to deployment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Secret
apiVersion: v1
metadata:
name: keycloak-secret-devel
namespace: researchfi-devel
data:
KC_BOOTSTRAP_ADMIN_PASSWORD: admin_password
KC_BOOTSTRAP_ADMIN_USERNAME: admin_username
KC_DB_PASSWORD: db_password
KC_DB_URL: jdbc:sqlserver://<SQL server address here>:1433;DatabaseName=<database name here>;trustServerCertificate=true;integratedSecurity=false;
KC_DB_USERNAME: db_username
type: Opaque
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Secret
apiVersion: v1
metadata:
name: keycloak-secret-production
namespace: researchfi-production
data:
KC_BOOTSTRAP_ADMIN_PASSWORD: admin_password
KC_BOOTSTRAP_ADMIN_USERNAME: admin_username
KC_DB_PASSWORD: db_password
KC_DB_URL: jdbc:sqlserver://<SQL server address here>:1433;DatabaseName=<database name here>;trustServerCertificate=true;integratedSecurity=false;
KC_DB_USERNAME: db_username
type: Opaque
12 changes: 12 additions & 0 deletions keycloak/openshift/rahti2/secret/template-keycloak-secret-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Secret
apiVersion: v1
metadata:
name: keycloak-secret-qa
namespace: researchfi-qa
data:
KC_BOOTSTRAP_ADMIN_PASSWORD: admin_password
KC_BOOTSTRAP_ADMIN_USERNAME: admin_username
KC_DB_PASSWORD: db_password
KC_DB_URL: jdbc:sqlserver://<SQL server address here>:1433;DatabaseName=<database name here>;trustServerCertificate=true;integratedSecurity=false;
KC_DB_USERNAME: db_username
type: Opaque

0 comments on commit 6448630

Please sign in to comment.