diff --git a/automation/dbildungs-iam-keycloak/Chart.yaml b/automation/dbildungs-iam-keycloak/Chart.yaml index 243f20e12..977390a30 100644 --- a/automation/dbildungs-iam-keycloak/Chart.yaml +++ b/automation/dbildungs-iam-keycloak/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: DBP-1067 +appVersion: DBP-0000 description: A Helm Chart for the dbildungs-iam-keycloak name: dbildungs-iam-keycloak type: application -version: 0.0.0-dbp-1067-20241129-1014 +version: 0.0.0-dbp-0000-20241129-1115 diff --git a/automation/dbildungs-iam-keycloak/templates/deployment.yaml b/automation/dbildungs-iam-keycloak/templates/deployment.yaml index 50d66b5f6..5d15f9f71 100644 --- a/automation/dbildungs-iam-keycloak/templates/deployment.yaml +++ b/automation/dbildungs-iam-keycloak/templates/deployment.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: Deployment +kind: StatefulSet metadata: name: {{ template "common.names.name" . }} namespace: {{ template "common.names.namespace" . }} @@ -134,16 +134,27 @@ spec: - configMapRef: name: {{ template "common.names.name" . }} volumeMounts: + - name: data + mountPath: /data - mountPath: "/opt/keycloak/data/import" name: realm-config readOnly: true {{- with .Values.extraVolumes }} {{- toYaml . | nindent 12 }} {{- end }} + volumes: - name: realm-config configMap: name: {{ .Values.realm.name }} {{- with .Values.extraVolumes }} {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} + volumeClaimTemplates: + - metadata: + name: data + spec: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: {{ .Values.persistence.size }} \ No newline at end of file diff --git a/automation/dbildungs-iam-keycloak/values.yaml b/automation/dbildungs-iam-keycloak/values.yaml index 86072ca7b..7ef1e7705 100644 --- a/automation/dbildungs-iam-keycloak/values.yaml +++ b/automation/dbildungs-iam-keycloak/values.yaml @@ -92,6 +92,7 @@ ingress: path: / pathType: Prefix annotations: + nginx.ingress.kubernetes.io/affinity: "cookie" nginx.ingress.kubernetes.io/proxy-buffer-size: "16k" nginx.ingress.kubernetes.io/proxy-buffers-number: "4" @@ -118,3 +119,6 @@ autoscaling: status: url: "https://status.dev.spsh.dbildungsplattform.de/" + +persistence: + size: 10Gi \ No newline at end of file