Skip to content
Snippets Groups Projects
Commit a13cc3ba authored by Dominik Kaminski's avatar Dominik Kaminski :fire:
Browse files

Merge branch 'feat/fix-job' into 'main'

fix(sovereign-workplace-jitsi): Fix nodePort deployment with different egress gateway

See merge request souvap/tooling/charts/sovereign-workplace-jitsi!5
parents cb64cae2 cc79996d
No related branches found
No related tags found
No related merge requests found
......@@ -43,10 +43,19 @@ data:
"[{ \"op\": \"add\", \"path\": \"/data/JVB_ADVERTISE_IPS\", \"value\": \"${ip}\" },
{ \"op\": \"add\", \"path\": \"/data/DOCKER_HOST_ADDRESS\", \"value\": \"${ip}\" }]"
{{- else if (eq .Values.jitsi.jvb.service.type "NodePort") }}
{{- if .Values.patchJVB.configuration.staticLoadbalancerIP }}
echo "Patching JVB to advertise IP: {{ .Values.patchJVB.configuration.staticLoadbalancerIP }}"
kubectl patch cm jitsi-jvb --type json --patch \
"[{ \"op\": \"add\", \"path\": \"/data/JVB_ADVERTISE_IPS\", \"value\": \"{{ .Values.patchJVB.configuration.staticLoadbalancerIP }}\" },
{ \"op\": \"add\", \"path\": \"/data/DOCKER_HOST_ADDRESS\", \"value\": \"{{ .Values.patchJVB.configuration.staticLoadbalancerIP }}\" }]"
{{- end }}
port=$(kubectl get svc jitsi-jvb -o jsonpath='{.spec.ports[0].nodePort}');
echo "Patching JVB to use port: ${port}"
echo "Patching JVB ConfigMap to use port: ${port}"
kubectl patch cm jitsi-jvb --type json --patch \
"[{ \"op\": \"add\", \"path\": \"/data/JVB_PORT\", \"value\": \"${port}\" }]"
echo "Patching JVB Service to use targetPort: ${port}"
kubectl patch svc jitsi-jvb --type json --patch \
"[{ \"op\": \"replace\", \"path\": \"/spec/ports/0/targetPort\", \"value\": ${port} }]"
{{- end }}
kubectl rollout restart deployment jitsi-jvb
{{- end }}
......
......@@ -12,6 +12,7 @@ metadata:
{{- include "common.labels.standard" . | nindent 4 }}
rules:
# Get IP/Port from service.
# Update target port for nodePort
- apiGroups: [""]
resources:
- "services"
......@@ -19,6 +20,8 @@ rules:
- "jitsi-jvb"
verbs:
- "get"
- "update"
- "patch"
# Update configmap for env vars.
- apiGroups: [""]
resources:
......
......@@ -85,6 +85,13 @@ image:
# After deployment of JVB service, the job fetches the provisioned LoadBalancer IP or NodePort port to advertise.
patchJVB:
# Job configuration
configuration:
# -- Relevant for NodePort deployments only.
# In case you have a different egress gateway and thus the incoming ip can not be autodiscovered, provide the ip of
# your ingress gateway.
staticLoadbalancerIP: ""
# Security Context.
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
containerSecurityContext:
......@@ -169,7 +176,7 @@ jitsi:
websockets:
colibri:
enabled: false
enabled: true
xmpp:
enabled: false
......@@ -219,6 +226,13 @@ jitsi:
- name: "jitsi-meet-swp"
mountPath: "/usr/share/jitsi-meet/static/oidc-redirect.html"
subPath: "oidc-redirect.html"
ingress:
annotations:
ingress.cilium.io/tcp-keep-alive: "enabled"
ingress.cilium.io/websocket: "enabled"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-sent-timeout: "3600"
nginx.org/websocket-services: "http"
prosody:
image:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.