Skip to content

Commit 1a74e8b

Browse files
authored
Envoy proxy pdb and topology (#4)
* envoy-proxy-pdb-and-topology * upgrade admin spa and sliding sync
1 parent 4f1ba5b commit 1a74e8b

File tree

4 files changed

+38
-5
lines changed

4 files changed

+38
-5
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.2.1
3+
version: 0.3.0

charts/synapse/templates/envoy-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ spec:
7373
affinity:
7474
{{ toYaml .Values.envoyProxy.affinity | nindent 8 }}
7575
{{- end }}
76+
{{- if .Values.envoyProxy.topologySpreadConstraints }}
77+
topologySpreadConstraints:
78+
{{ toYaml .Values.envoyProxy.topologySpreadConstraints | nindent 8 }}
79+
{{- end }}
7680
volumes:
7781
- name: config
7882
configMap:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- if .Values.envoyProxy.podDisruptionBudget.ebabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: synapse-client-reader-envoy
6+
spec:
7+
{{- if .Values.envoyProxy.podDisruptionBudget.minAvailable }}
8+
minAvailable: {{ .Values.envoyProxy.podDisruptionBudget.minAvailable }}
9+
{{- end }}
10+
{{- if .Values.envoyProxy.podDisruptionBudget.maxUnavailable }}
11+
maxUnavailable: {{ .Values.envoyProxy.podDisruptionBudget.maxUnavailable }}
12+
{{- end }}
13+
selector:
14+
matchLabels:
15+
{{- include "synapse-client-reader-envoy.selectorLabels" . | nindent 6 }}
16+
{{- end }}

charts/synapse/values.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ admin:
278278
serverName: NOT-CONFIGURED
279279
image:
280280
repository: "awesometechnologies/synapse-admin"
281-
tag: "0.10.0"
281+
tag: "0.10.1"
282282
pullPolicy: IfNotPresent
283283
replicas: 1
284284
resources: {}
@@ -302,7 +302,7 @@ slidingSyncProxy:
302302
affinity: {}
303303
image:
304304
repository: ghcr.io/matrix-org/sliding-sync
305-
tag: v0.99.18
305+
tag: v0.99.19
306306
service:
307307
type: ClusterIP
308308
port: 80
@@ -328,10 +328,14 @@ envoyProxy:
328328
service:
329329
type: ClusterIP
330330
port: 80
331-
replicaCount: 1
331+
replicaCount: 2
332+
podDisruptionBudget:
333+
ebabled: true
334+
#minAvailable: 1
335+
maxUnavailable: 1
332336
image:
333337
repository: envoyproxy/envoy
334-
tag: v1.27.4
338+
tag: v1.27.7
335339
pullPolicy: IfNotPresent
336340
resources: {}
337341
# limits:
@@ -344,6 +348,15 @@ envoyProxy:
344348
nodeSelector: {}
345349
tolerations: []
346350
affinity: {}
351+
topologySpreadConstraints: []
352+
# example
353+
#topologySpreadConstraints:
354+
# - maxSkew: 1
355+
# topologyKey: failure-domain.beta.kubernetes.io/zone
356+
# whenUnsatisfiable: ScheduleAnyway
357+
# labelSelector:
358+
# matchLabels:
359+
# kubernetes.io/os: linux
347360

348361
matrixAuthentication:
349362
enabled: true

0 commit comments

Comments
 (0)