Skip to content

Commit

Permalink
Introduce support for external Jibri deployments
Browse files Browse the repository at this point in the history
This allows k8s operators to deploy this chart with all required configurations
and secrets for Jibri operation, while skipping the creation of bundled Jibri
deployment, service and PVC.

Fixes #69.

Signed-off-by: Serge Tkatchouk <[email protected]>
  • Loading branch information
spijet committed Feb 9, 2023
1 parent 8510c72 commit c12a4fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Parameter | Description | Default
`websockets.colibri.enabled` | Enable WebSocket support for JVB/Colibri | `false`
`websockets.xmpp.enabled` | Enable WebSocket support for Prosody/XMPP | `false`
`jibri.enabled` | Enable Jibri service | `false`
`jibri.useExternalJibri` | Use external Jibri service, instead of chart-provided one | `false`
`jibri.singleUseMode` | Enable Jibri single-use mode | `false`
`jibri.persistence.enabled` | Enable persistent storage for Jibri recordings | `false`
`jibri.persistence.size` | Jibri persistent storage size | `4Gi`
Expand Down
2 changes: 1 addition & 1 deletion templates/jibri/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.jibri.enabled }}
{{- if and .Values.jibri.enabled (not .Values.jibri.useExternalJibri) }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/jibri/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.jibri.enabled .Values.jibri.persistence.enabled (not .Values.jibri.persistence.existingClaim)}}
{{- if and .Values.jibri.enabled .Values.jibri.persistence.enabled (not .Values.jibri.persistence.existingClaim) (not .Values.jibri.useExternalJibri) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/jibri/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.jibri.enabled }}
{{- if and .Values.jibri.enabled (not .Values.jibri.useExternalJibri) }}
apiVersion: v1
kind: Service
metadata:
Expand Down
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ jibri:
## and/or stream their meetings (e.g. to YouTube).
enabled: false

## Use external Jibri installation.
## This setting skips the creation of Jibri Deployment altogether,
## instead creating just the config secret
## and enabling recording/streaming services.
## Defaults to disabled (use bundled Jibri).
useExternalJibri: false

## Enable single-use mode for Jibri.
## With this setting enabled, every Jibri instance
## will become "expired" after being used once (successfully or not)
Expand Down

0 comments on commit c12a4fb

Please sign in to comment.