commit 205cd24d5b4fd7e161f7ac7b3a704ec525460d6a
parent 16c33399bd7db8604590c947cd0f143beefbacfa
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 27 Feb 2025 19:59:16 +0100
Try to fix synapse routing
Diffstat:
2 files changed, 77 insertions(+), 44 deletions(-)
diff --git a/apps/base/matrix/draupnir-synapse/release.yaml b/apps/base/matrix/draupnir-synapse/release.yaml
@@ -213,7 +213,27 @@ spec:
listeners:
- federation
paths:
- - /_matrix/federation/v1/send/
+ - /_matrix/federation/v1/send/.*
+ - /_matrix/federation/v1/event/.*
+ - /_matrix/federation/v1/state/.*
+ - /_matrix/federation/v1/state_ids/.*
+ - /_matrix/federation/v1/backfill/.*
+ - /_matrix/federation/v1/get_missing_events/.*
+ - /_matrix/federation/v1/publicRooms.*
+ - /_matrix/federation/v1/query/.*
+ - /_matrix/federation/v1/make_join/.*
+ - /_matrix/federation/v1/make_leave/.*
+ - /_matrix/federation/(v1|v2)/send_join/.*
+ - /_matrix/federation/(v1|v2)/send_leave/.*
+ - /_matrix/federation/v1/make_knock/.*
+ - /_matrix/federation/v1/send_knock/.*
+ - /_matrix/federation/(v1|v2)/invite/.*
+ - /_matrix/federation/v1/event_auth/.*
+ - /_matrix/federation/v1/timestamp_to_event/.*
+ - /_matrix/federation/v1/exchange_third_party_invite/.*
+ - /_matrix/federation/v1/user/devices/.*
+ - /_matrix/key/v2/query.*
+ - /_matrix/federation/v1/hierarchy/.*
appservice:
resources:
requests:
diff --git a/apps/base/matrix/draupnir4all/deployment.yaml b/apps/base/matrix/draupnir4all/deployment.yaml
@@ -40,11 +40,11 @@ spec:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - draupnir4all
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - draupnir4all
topologyKey: "kubernetes.io/hostname"
containers:
- name: draupnir4all
@@ -63,55 +63,68 @@ spec:
# value: http://tempo.monitoring.svc.cluster.local:4318/v1/traces
# - name: TRACING_METRIC_URL
# value: http://tempo.monitoring.svc.cluster.local:4318/v1/metrics
+ env:
+ - name: NODE_OPTIONS
+ value: "--trace-warnings"
command: ["./draupnir-entrypoint.sh"]
- args: ["appservice", "-c", "/data/config/config.appservice.yaml", "-f", "/data/config/draupnir-registration.yaml",
- "--draupnir-config", "/data/config/draupnir-config.yaml", "-p", "9000"]
+ args:
+ [
+ "appservice",
+ "-c",
+ "/data/config/config.appservice.yaml",
+ "-f",
+ "/data/config/draupnir-registration.yaml",
+ "--draupnir-config",
+ "/data/config/draupnir-config.yaml",
+ "-p",
+ "9000",
+ ]
resources:
- limits: {}
- requests:
- memory: "344Mi"
- cpu: "252m"
+ limits: {}
+ requests:
+ memory: "344Mi"
+ cpu: "252m"
securityContext:
- runAsUser: 1000
- runAsGroup: 1000
- fsGroup: 1000
- readOnlyRootFilesystem: true
+ runAsUser: 1000
+ runAsGroup: 1000
+ fsGroup: 1000
+ readOnlyRootFilesystem: true
ports:
- - containerPort: 9001
- name: widgets
- protocol: TCP
- - containerPort: 9000
- name: appservice
- protocol: TCP
+ - containerPort: 9001
+ name: widgets
+ protocol: TCP
+ - containerPort: 9000
+ name: appservice
+ protocol: TCP
volumeMounts:
- - name: configs
- mountPath: "/data/config"
- readOnly: true
- - mountPath: /data/storage
- name: storage
- - mountPath: /tmp
- name: tmp
+ - name: configs
+ mountPath: "/data/config"
+ readOnly: true
+ - mountPath: /data/storage
+ name: storage
+ - mountPath: /tmp
+ name: tmp
livenessProbe:
- httpGet:
- path: /healthz
- port: appservice
- scheme: HTTP
- initialDelaySeconds: 15
- periodSeconds: 10
+ httpGet:
+ path: /healthz
+ port: appservice
+ scheme: HTTP
+ initialDelaySeconds: 15
+ periodSeconds: 10
startupProbe:
- httpGet:
- path: /healthz
- port: appservice
- initialDelaySeconds: 15
- failureThreshold: 30
- periodSeconds: 10
+ httpGet:
+ path: /healthz
+ port: appservice
+ initialDelaySeconds: 15
+ failureThreshold: 30
+ periodSeconds: 10
volumes:
- name: configs
secret:
- secretName: draupnir-appservice
+ secretName: draupnir-appservice
- name: storage
persistentVolumeClaim:
- claimName: d4all-persistent-storage
+ claimName: d4all-persistent-storage
- name: tmp
emptyDir:
- sizeLimit: 2048Mi
+ sizeLimit: 2048Mi