[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
1 changed files with 11 additions and 5 deletions

View File

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