Update apps/matrix

This commit is contained in:
Nico Schottelius 2022-03-11 08:49:12 +01:00
parent 259a929f04
commit d5bcf3cd90
5 changed files with 53 additions and 8 deletions

View file

@ -23,7 +23,7 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: ungleich/ungleich-certbot:1.1.1 image: ungleich/ungleich-certbot:1.1.3
ports: ports:
- containerPort: 443 - containerPort: 443
name: https name: https
@ -43,6 +43,13 @@ spec:
mountPath: "/nginx-configs" mountPath: "/nginx-configs"
- name: etcletsencrypt - name: etcletsencrypt
mountPath: "/etc/letsencrypt" mountPath: "/etc/letsencrypt"
resources:
requests:
memory: {{ .Values.resources.elementnginx.memory }}
cpu: {{ .Values.resources.elementnginx.cpu }}
limits:
memory: {{ .Values.resources.elementnginx.memory }}
cpu: {{ .Values.resources.elementnginx.cpu }}
- name: element-web - name: element-web
command: ["nginx", "-g", "daemon off;" ] command: ["nginx", "-g", "daemon off;" ]
image: vectorim/element-web:{{ .Values.elementWebVersion }} image: vectorim/element-web:{{ .Values.elementWebVersion }}
@ -54,6 +61,13 @@ spec:
- name: elementwebconfig - name: elementwebconfig
mountPath: "/usr/share/nginx/html/config.json" mountPath: "/usr/share/nginx/html/config.json"
subPath: config.json subPath: config.json
resources:
requests:
memory: {{ .Values.resources.element.memory }}
cpu: {{ .Values.resources.element.cpu }}
limits:
memory: {{ .Values.resources.element.memory }}
cpu: {{ .Values.resources.element.cpu }}
volumes: volumes:
- name: nginx-config - name: nginx-config
configMap: configMap:

View file

@ -34,11 +34,11 @@ spec:
subPath: postgres subPath: postgres
resources: resources:
requests: requests:
memory: "64Mi" memory: {{.Values.resources.postgres.memory }}
cpu: "100m" cpu: {{.Values.resources.postgres.cpu}}
limits: limits:
memory: "256Mi" memory: {{.Values.resources.postgres.memory}}
cpu: "400m" cpu: {{.Values.resources.postgres.cpu}}
volumes: volumes:
- name: postgres-data - name: postgres-data
persistentVolumeClaim: persistentVolumeClaim:

View file

@ -58,6 +58,13 @@ spec:
mountPath: "/nginx-configs" mountPath: "/nginx-configs"
- name: etcletsencrypt - name: etcletsencrypt
mountPath: "/etc/letsencrypt" mountPath: "/etc/letsencrypt"
resources:
requests:
memory: {{ .Values.resources.synapsenginx.memory }}
cpu: {{ .Values.resources.synapsenginx.cpu }}
limits:
memory: {{ .Values.resources.synapsenginx.memory }}
cpu: {{ .Values.resources.synapsenginx.cpu }}
- name: synapse - name: synapse
image: matrixdotorg/synapse:{{ .Values.synapseVersion }} image: matrixdotorg/synapse:{{ .Values.synapseVersion }}
command: command:
@ -81,6 +88,13 @@ spec:
mountPath: "/data" mountPath: "/data"
- name: synapse-conf - name: synapse-conf
mountPath: "/config-ro" mountPath: "/config-ro"
resources:
requests:
memory: {{.Values.resources.synapse.memory }}
cpu: {{.Values.resources.synapse.cpu}}
limits:
memory: {{.Values.resources.synapse.memory}}
cpu: {{.Values.resources.synapse.cpu}}
volumes: volumes:
- name: etcletsencrypt - name: etcletsencrypt
persistentVolumeClaim: persistentVolumeClaim:

View file

@ -7,8 +7,8 @@ enable_registration: false
# Maximum size of one particular file # Maximum size of one particular file
max_filesize_in_mb: 100 max_filesize_in_mb: 100
elementWebVersion: "v1.9.8" elementWebVersion: "v1.10.4"
synapseVersion: "v1.49.2" synapseVersion: "v1.53.0"
elementWebFQDN: "{{ .Release.Name }}-element-web.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}" elementWebFQDN: "{{ .Release.Name }}-element-web.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
synapseFQDN: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}" synapseFQDN: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
@ -27,3 +27,20 @@ storage:
letsencrypt: letsencrypt:
size: 50Mi size: 50Mi
storageClass: rook-ceph-block-hdd storageClass: rook-ceph-block-hdd
resources:
postgres:
memory: "512Mi"
cpu: "400m"
elementnginx:
memory: "64Mi"
cpu: "100m"
synapsenginx:
memory: "64Mi"
cpu: "200m"
element:
memory: "128Mi"
cpu: "100m"
synapse:
memory: "1024Mi"
cpu: "400m"

View file

@ -6,7 +6,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: nginx app: nginx
replicas: 2 # tells deployment to run 2 pods matching the template replicas: 6
template: template:
metadata: metadata:
labels: labels: