From 2c7608d85a7b2ce902ab621c98f1d943e952e3d3 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Mon, 9 Sep 2024 10:33:08 +0200 Subject: [PATCH] fix(mycloud-matrix): networkpolicy for element call jwt to dns --- mycloud-matrix/templates/clients/element-call.yaml | 9 ++++++++- mycloud-matrix/values.yaml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mycloud-matrix/templates/clients/element-call.yaml b/mycloud-matrix/templates/clients/element-call.yaml index 5172704..42e26d8 100644 --- a/mycloud-matrix/templates/clients/element-call.yaml +++ b/mycloud-matrix/templates/clients/element-call.yaml @@ -92,7 +92,14 @@ spec: egress: enabled: true extra: - {{- toYaml .Values.commons.networkpolicies.to.matrix | nindent 14 }} + - ports: + - port: 53 + protocol: UDP + to: + {{- toYaml .Values.commons.networkpolicies.to.dns | nindent 18 }} + {{- with .Values.commons.networkpolicies.to.matrix }} + {{- toYaml . | nindent 14 }} + {{- end }} {{- end }} config: key: {{ .Values.ingress.elementCall.livekitJWT.livekit.key | default .Values.livekit.key }} diff --git a/mycloud-matrix/values.yaml b/mycloud-matrix/values.yaml index f6ac70b..bf5f179 100644 --- a/mycloud-matrix/values.yaml +++ b/mycloud-matrix/values.yaml @@ -92,6 +92,7 @@ commons: ingress: [] metrics: [] to: + dns: [] smtp: [] matrix: []