[matrix] begin to prep configmap vs secret

This commit is contained in:
Nico Schottelius 2021-07-17 20:12:36 +02:00
parent 1789cdb309
commit e25293ba60

View file

@ -48,12 +48,12 @@ spec:
mountPath: "/var/lib/postgresql/data"
subPath: postgres
- name: matrix
image: matrixdotorg/synapse:v{{ .Values.synapseVersion }}
image: ungleich/ungleich-matrix-synapse:{{ .Values.synapseVersion }}
ports:
- containerPort: 8008
env:
- name: SYNAPSE_CONFIG_PATH
value: "/config/homeserver.yaml"
- name: SYNAPSE_CONFIG_DIR
value: "/config"
volumeMounts:
- name: data
mountPath: "/data"
@ -75,6 +75,11 @@ spec:
- name: matrix-config
configMap:
name: {{ tpl .Values.identifier . }}-matrix-config
items:
- key: homeserver.yaml
path: homeserver.yaml
- key: log.yaml
path: log.yaml
---
apiVersion: v1
@ -196,8 +201,9 @@ kind: ConfigMap
metadata:
name: {{ tpl .Values.identifier . }}-postgres-config
data:
POSTGRES_USER: matrix-synapse
POSTGRES_DB: matrix-synapse
POSTGRES_USER: "matrix-synapse"
POSTGRES_DB: "matrix-synapse"
POSTGRES_HOST: "localhost"
---
apiVersion: v1
kind: ConfigMap