Skip to content

Commit b900648

Browse files
author
dbildungs-iam-server-gha
committed
dbildungs-iam-server
1 parent 441dc22 commit b900648

File tree

5 files changed

+43
-1
lines changed

5 files changed

+43
-1
lines changed

automation/dbildungs-iam-server/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ appVersion: spsh-1705
33
description: dBildungs-IAM-server
44
name: dbildungs-iam-server
55
type: application
6-
version: 0.0.0-spsh-1705-20250114-0824
6+
version: 0.0.0-spsh-1705-20250114-0825

automation/dbildungs-iam-server/templates/_dbildungs-iam-server-envs.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,9 @@
126126
secretKeyRef:
127127
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
128128
key: vidis-keycloak-role
129+
- name: METRICS_BASIC_AUTH
130+
valueFrom:
131+
secretKeyRef:
132+
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
133+
key: auth
129134
{{- end}}

automation/dbildungs-iam-server/templates/backend-ingress.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,38 @@ spec:
3030
port:
3131
number: {{ $.Values.backend.service.ports.http }}
3232
{{- end }}
33+
{{ end }}
34+
---
35+
{{if .Values.backend.ingress.healthenabled }}
36+
apiVersion: networking.k8s.io/v1
37+
kind: Ingress
38+
metadata:
39+
name: {{ template "common.names.name" . }}-health-backend
40+
namespace: {{ template "common.names.namespace" . }}
41+
labels:
42+
{{- include "common.labels" . | nindent 4 }}
43+
annotations:
44+
nginx.ingress.kubernetes.io/rewrite-target: /health
45+
nginx.ingress.kubernetes.io/auth-type: basic
46+
nginx.ingress.kubernetes.io/auth-secret: {{ .Values.auth.secretName }}
47+
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - user'
48+
{{- with .Values.backend.ingress.annotations }}
49+
{{- toYaml . | nindent 4 }}
50+
{{- end }}
51+
spec:
52+
tls:
53+
- hosts:
54+
- {{ .Values.backendHostname }}
55+
ingressClassName: {{ .Values.backend.ingress.ingressClassName }}
56+
rules:
57+
- host: {{ .Values.backendHostname }}
58+
http:
59+
paths:
60+
- path: /api/health
61+
pathType: Prefix
62+
backend:
63+
service:
64+
name: {{ template "common.names.name" $ }}-backend
65+
port:
66+
number: {{ $.Values.backend.service.ports.http }}
3367
{{ end }}

automation/dbildungs-iam-server/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ data:
3333
import-passphrase-secret: {{ .Values.auth.import_passphrase_secret }}
3434
import-passphrase-salt: {{ .Values.auth.import_passphrase_salt }}
3535
ox-password: {{ .Values.auth.ox_password }}
36+
auth: {{ .Values.auth.basic_auth_password }}
3637
{{- end }}

automation/dbildungs-iam-server/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ auth:
6868
import_passphrase_secret: ''
6969
import_passphrase_salt: ''
7070
ox_password: ''
71+
basic_auth_password: ''
7172

7273
ox:
7374
enabled: false
@@ -121,6 +122,7 @@ backend:
121122
# Only enable if 2nd host name is defined
122123
enabled2nd: false
123124
enabled: true
125+
healthenabled: true
124126
ingressClassName: nginx
125127
pathType: Prefix
126128
portnumber: 80

0 commit comments

Comments
 (0)