Skip to content

Commit

Permalink
dbildungs-iam-keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
dbildungs-iam-keycloak-gha committed Nov 19, 2024
1 parent 2082be0 commit 09badeb
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 71 deletions.
4 changes: 2 additions & 2 deletions automation/dbildungs-iam-keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: SPSH-1324
appVersion: SPSH-1195
description: A Helm Chart for the dbildungs-iam-keycloak
name: dbildungs-iam-keycloak
type: application
version: 0.0.0-spsh-1324-20241119-1434
version: 0.0.0-spsh-1195-20241119-1628
3 changes: 2 additions & 1 deletion automation/dbildungs-iam-keycloak/dev-realm-spsh.json
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
"description": "",
"rootUrl": "${KC_ROOT_URL}",
"adminUrl": "",
"baseUrl": "${KC_ROOT_URL}",
"baseUrl": "",
"surrogateAuthRequired": false,
"enabled": true,
"alwaysDisplayInConsole": false,
Expand Down Expand Up @@ -1983,6 +1983,7 @@
"loginTheme": "schulportal",
"eventsEnabled": false,
"eventsListeners": [
"metrics-listener",
"jboss-logging"
],
"enabledEventTypes": [],
Expand Down
3 changes: 2 additions & 1 deletion automation/dbildungs-iam-keycloak/prod-realm-spsh.json
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
"description": "",
"rootUrl": "${KC_ROOT_URL}",
"adminUrl": "",
"baseUrl": "${KC_ROOT_URL}",
"baseUrl": "",
"surrogateAuthRequired": false,
"enabled": true,
"alwaysDisplayInConsole": false,
Expand Down Expand Up @@ -1820,6 +1820,7 @@
"loginTheme": "schulportal",
"eventsEnabled": false,
"eventsListeners": [
"metrics-listener",
"jboss-logging"
],
"enabledEventTypes": [],
Expand Down
1 change: 0 additions & 1 deletion automation/dbildungs-iam-keycloak/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ data:
KC_PROXY: "edge"
KEYCLOAK_ADMIN: admin
KC_HTTP_MANAGEMENT_PORT: "8090"
STATUS_URL: "{{ .Values.status.url }}"
9 changes: 2 additions & 7 deletions automation/dbildungs-iam-keycloak/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ template "common.names.name" . }}
app.kubernetes.io/component: keycloak
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
template:
metadata:
labels:
Expand All @@ -30,9 +28,8 @@ spec:
{{- toYaml .command | nindent 16 }}
{{- end }}
args:
# - "--cache"
# - "local"
- "--optimized"
- "--cache"
- "local"
- "--hostname"
- "{{ tpl .Values.keycloakHostname . }}"
- "--import-realm"
Expand All @@ -48,8 +45,6 @@ spec:
livenessProbe: {{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }}
readinessProbe: {{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }}
env:
- name: JAVA_OPTS_APPEND
value: "-Djgroups.dns.query={{ template "common.names.name" . }}-headless.{{ template "common.names.namespace" . }}.svc.cluster.local"
- name: KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
23 changes: 0 additions & 23 deletions automation/dbildungs-iam-keycloak/templates/headless-service.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions automation/dbildungs-iam-keycloak/templates/hpa.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.keycloak.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "common.names.name" . }}
namespace: {{ template "common.names.namespace" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
app.kubernetes.io/component: keycloak
spec:
namespaceSelector:
matchNames:
- {{ include "common.names.namespace" . | quote }}
selector:
matchLabels:
app.kubernetes.io/name: {{ template "common.names.name" . }}
endpoints:
- port: {{ .Values.keycloak.serviceMonitor.port }}
path: {{ .Values.keycloak.serviceMonitor.path }}
interval: {{ .Values.keycloak.serviceMonitor.interval | default "30s" }}
{{- end }}
18 changes: 8 additions & 10 deletions automation/dbildungs-iam-keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1
image:
repository: ghcr.io/dbildungsplattform/dbildungs-iam-keycloak
tag: ""
pullPolicy: Always
pullPolicy: Always

auth:
# existingSecret: Refers to a secret already present in the cluster, which is required for the authentication and configuration of the database setup tasks.
Expand Down Expand Up @@ -38,7 +38,7 @@ database:
password: ""
username: "dbildungs_iam_keycloak"

realm:
realm:
name: dbilduns-iam-keycloak-realm
filepath: "dev-realm-spsh.json"

Expand Down Expand Up @@ -110,11 +110,9 @@ service:
ports:
http: 80

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 60

status:
url: "https://status.dev.spsh.dbildungsplattform.de/"
keycloak:
serviceMonitor:
enabled: true
path: "/realms/SPSH/metrics"
endpoints:
- port: 'http'

0 comments on commit 09badeb

Please sign in to comment.