mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Sogo: change config 1
This commit is contained in:
+23
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user