Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

✨(helm) configure MinIO webhook with Kubernetes job for recordings

lebaudantoine46fdbc0430eb
diff --git a/src/helm/extra/templates/minio.yaml b/src/helm/extra/templates/minio.yaml
index 108d753c..95c2193c 100644
--- a/src/helm/extra/templates/minio.yaml
+++ b/src/helm/extra/templates/minio.yaml
@@ -111,3 +111,26 @@ spec:
exit 0
restartPolicy: Never
backoffLimit: 1
+---
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: minio-webhook
+spec:
+ template:
+ spec:
+ containers:
+ - name: mc
+ image: minio/mc
+ command:
+ - /bin/sh
+ - -c
+ - |
+ /usr/bin/mc alias set meet http://minio:9000 meet password && \
+ /usr/bin/mc admin config set meet notify_webhook:meet-webhook endpoint="https://meet.127.0.0.1.nip.io/api/v1.0/recordings/storage-hook/" auth_token="Bearer password" && \
+ /usr/bin/mc admin service restart meet --wait --json && \
+ sleep 15 && \
+ /usr/bin/mc event add meet/meet-media-storage arn:minio:sqs::meet-webhook:webhook --event put && \
+ exit 0
+ restartPolicy: Never
+ backoffLimit: 1