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:
|
labels:
|
||||||
app: sogo
|
app: sogo
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: sogo
|
- name: sogo
|
||||||
image: sonroyaalmerol/docker-sogo:latest
|
image: sonroyaalmerol/docker-sogo:latest
|
||||||
@@ -24,11 +44,6 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: sogo-postgres-credentials
|
|
||||||
key: password
|
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Amsterdam"
|
value: "Europe/Amsterdam"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -58,9 +73,11 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config-template
|
||||||
configMap:
|
configMap:
|
||||||
name: sogo-config
|
name: sogo-config
|
||||||
|
- name: config
|
||||||
|
emptyDir: {}
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sogo-data
|
claimName: sogo-data
|
||||||
|
|||||||
Reference in New Issue
Block a user