Sogo: change config 1

This commit is contained in:
Ruben Hensen
2026-01-26 01:14:24 +01:00
parent 075db95108
commit 285a0b0b9a
+23 -6
View File
@@ -17,6 +17,26 @@ spec:
labels:
app: sogo
spec:
initContainers:
- name: config-init
image: bhgedigital/envsubst:latest
command:
- sh
- -c
- |
envsubst < /config-template/sogo.yaml > /config/sogo.yaml
echo "Configuration file prepared"
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: sogo-postgres-credentials
key: password
volumeMounts:
- name: config-template
mountPath: /config-template
- name: config
mountPath: /config
containers:
- name: sogo
image: sonroyaalmerol/docker-sogo:latest
@@ -24,11 +44,6 @@ spec:
- containerPort: 80
name: http
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: sogo-postgres-credentials
key: password
- name: TZ
value: "Europe/Amsterdam"
volumeMounts:
@@ -58,9 +73,11 @@ spec:
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
- name: config-template
configMap:
name: sogo-config
- name: config
emptyDir: {}
- name: data
persistentVolumeClaim:
claimName: sogo-data