matrix-synapse: Cleanups to ease deployment

This commit is contained in:
Alexander Olofsson 2020-08-10 11:13:02 +02:00
parent db2c3cb70b
commit 08226b1db9
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 9 additions and 2 deletions

View file

@ -62,7 +62,7 @@ stringData:
redis: redis:
enabled: true enabled: true
host: {{ $redisHost | quote }} host: {{ $redisHost | quote }}
{{- if or .Values.redis.password .Values.externalRedis.password }} {{- if or .Values.redis.usePassword .Values.redis.password .Values.externalRedis.password }}
{{- if $redisPass }} {{- if $redisPass }}
password: {{ $redisPass | quote }} password: {{ $redisPass | quote }}
{{- else }} {{- else }}

View file

@ -10,6 +10,7 @@ metadata:
component: well-known component: well-known
data: data:
lighttpd.conf: | lighttpd.conf: |
server.port = 8080
server.modules = ( server.modules = (
"mod_rewrite", "mod_rewrite",
"mod_status", "mod_status",
@ -79,7 +80,7 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.wellknown.securityContext | nindent 12 }} {{- toYaml .Values.wellknown.securityContext | nindent 12 }}
ports: ports:
- containerPort: 80 - containerPort: 8080
name: http name: http
protocol: TCP protocol: TCP
readinessProbe: readinessProbe:
@ -96,12 +97,16 @@ spec:
- mountPath: {{ .Values.wellknown.htdocsPath }}/server.json - mountPath: {{ .Values.wellknown.htdocsPath }}/server.json
name: files name: files
subPath: server.json subPath: server.json
- mountPath: /run
name: run
resources: resources:
{{- toYaml .Values.wellknown.resources | nindent 12 }} {{- toYaml .Values.wellknown.resources | nindent 12 }}
volumes: volumes:
- name: files - name: files
configMap: configMap:
name: {{ $wkName }} name: {{ $wkName }}
- name: run
emptyDir: {}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View file

@ -80,6 +80,8 @@ config:
# enableRegistration: false # enableRegistration: false
## Note; this value will default to a random string if not specified. ## Note; this value will default to a random string if not specified.
# registrationSharedSecret: '' # registrationSharedSecret: ''
## Note; Strongly recommended to set this to a secure value.
# macaroonSecretKey: ''
# allowGuests: false # allowGuests: false
## Should the Synapse instance report stats. ## Should the Synapse instance report stats.