parent
d161729e19
commit
93ea9b8bed
@ -0,0 +1,19 @@ |
||||
org.jitsi.jicofo.ALWAYS_TRUST_MODE_ENABLED=true |
||||
org.jitsi.jicofo.BRIDGE_MUC={{ .Env.JVB_BREWERY_MUC }}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }} |
||||
|
||||
{{ if and .Env.JIBRI_BREWERY_MUC .Env.JIBRI_PENDING_TIMEOUT }} |
||||
org.jitsi.jicofo.jibri.BREWERY={{ .Env.JIBRI_BREWERY_MUC}}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }} |
||||
org.jitsi.jicofo.jibri.PENDING_TIMEOUT={{ .Env.JIBRI_PENDING_TIMEOUT }} |
||||
{{ end }} |
||||
|
||||
{{ if and .Env.JIGASI_SIP_URI .Env.JIGASI_BREWERY_MUC }} |
||||
org.jitsi.jicofo.jigasi.BREWERY={{ .Env.JIGASI_BREWERY_MUC}}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }} |
||||
{{ end }} |
||||
|
||||
{{ if .Env.ENABLE_AUTH | default "0" | toBool }} |
||||
org.jitsi.jicofo.auth.URL=XMPP:{{ .Env.XMPP_DOMAIN }} |
||||
{{ end }} |
||||
|
||||
{{ if .Env.JICOFO_RESERVATION_REST_BASE_URL }} |
||||
org.jitsi.impl.reservation.rest.BASE_URL={{ .Env.JICOFO_RESERVATION_REST_BASE_URL }} |
||||
{{ end }} |
@ -0,0 +1,13 @@ |
||||
handlers= java.util.logging.ConsoleHandler |
||||
|
||||
java.util.logging.ConsoleHandler.level = ALL |
||||
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter |
||||
|
||||
net.java.sip.communicator.util.ScLogFormatter.programname=JVB |
||||
|
||||
.level=INFO |
||||
|
||||
org.jitsi.videobridge.xmpp.ComponentImpl.level=FINE |
||||
|
||||
# All of the INFO level logs from MediaStreamImpl are unnecessary in the context of jitsi-videobridge. |
||||
org.jitsi.impl.neomedia.MediaStreamImpl.level=WARNING |
@ -0,0 +1,106 @@ |
||||
admins = { {{ .Env.JVB_ADMINS }} } |
||||
plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" } |
||||
http_default_host = "{{ .Env.XMPP_DOMAIN }}" |
||||
|
||||
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }} |
||||
{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }} |
||||
{{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" }} |
||||
{{ $JWT_ALLOW_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }} |
||||
{{ $JWT_AUTH_TYPE := .Env.JWT_AUTH_TYPE | default "token" }} |
||||
{{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }} |
||||
|
||||
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_ISSUERS }} |
||||
asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" } |
||||
{{ end }} |
||||
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_AUDIENCES }} |
||||
asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" } |
||||
{{ end }} |
||||
VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
||||
{{ if $ENABLE_AUTH }} |
||||
{{ if eq $AUTH_TYPE "jwt" }} |
||||
authentication = "{{ $JWT_AUTH_TYPE }}" |
||||
app_id = "{{ .Env.JWT_APP_ID }}" |
||||
app_secret = "{{ .Env.JWT_APP_SECRET }}" |
||||
allow_empty_token = {{ if $JWT_ALLOW_EMPTY }}true{{ else }}false{{ end }} |
||||
{{ if $JWT_ASAP_KEYSERVER }} |
||||
asap_key_server = "{{ .Env.JWT_ASAP_KEYSERVER }}" |
||||
{{ end }} |
||||
{{ else if eq $AUTH_TYPE "ldap" }} |
||||
authentication = "cyrus" |
||||
cyrus_application_name = "xmpp" |
||||
allow_unencrypted_plain_auth = true |
||||
{{ else if eq $AUTH_TYPE "internal" }} |
||||
authentication = "internal_hashed" |
||||
{{ end }} |
||||
{{ else }} |
||||
authentication = "anonymous" |
||||
{{ end }} |
||||
ssl = { |
||||
key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; |
||||
certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt"; |
||||
} |
||||
modules_enabled = { |
||||
"bosh"; |
||||
"pubsub"; |
||||
"ping"; |
||||
"speakerstats"; |
||||
"conference_duration"; |
||||
{{ if eq $AUTH_TYPE "jwt" }} |
||||
"{{ $JWT_TOKEN_AUTH_MODULE }}"; |
||||
{{ end }} |
||||
{{ if .Env.XMPP_MODULES }} |
||||
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}"; |
||||
{{ end }} |
||||
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "ldap") }} |
||||
"auth_cyrus"; |
||||
{{end}} |
||||
} |
||||
speakerstats_component = "speakerstats.{{ .Env.XMPP_DOMAIN }}" |
||||
conference_duration_component = "conferenceduration.{{ .Env.XMPP_DOMAIN }}" |
||||
c2s_require_encryption = false |
||||
|
||||
{{ if and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool) }} |
||||
VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}" |
||||
authentication = "anonymous" |
||||
c2s_require_encryption = false |
||||
{{ end }} |
||||
VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}" |
||||
ssl = { |
||||
key = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.key"; |
||||
certificate = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.crt"; |
||||
} |
||||
authentication = "internal_hashed" |
||||
{{ if .Env.XMPP_RECORDER_DOMAIN }} |
||||
VirtualHost "{{ .Env.XMPP_RECORDER_DOMAIN }}" |
||||
modules_enabled = { |
||||
"ping"; |
||||
} |
||||
authentication = "internal_hashed" |
||||
{{ end }} |
||||
Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc" |
||||
modules_enabled = { |
||||
"ping"; |
||||
{{ if .Env.XMPP_INTERNAL_MUC_MODULES }} |
||||
"{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}"; |
||||
{{ end }} |
||||
} |
||||
storage = "memory" |
||||
muc_room_cache_size = 1000 |
||||
Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" |
||||
storage = "memory" |
||||
modules_enabled = { |
||||
{{ if .Env.XMPP_MUC_MODULES }} |
||||
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}"; |
||||
{{ end }} |
||||
{{ if eq $AUTH_TYPE "jwt" }} |
||||
"{{ $JWT_TOKEN_AUTH_MODULE }}"; |
||||
{{ end }} |
||||
} |
||||
muc_room_locking = false |
||||
muc_room_default_public_jids = true |
||||
Component "focus.{{ .Env.XMPP_DOMAIN }}" |
||||
component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}" |
||||
Component "speakerstats.{{ .Env.XMPP_DOMAIN }}" "speakerstats_component" |
||||
muc_component = "{{ .Env.XMPP_MUC_DOMAIN }}" |
||||
Component "conferenceduration.{{ .Env.XMPP_DOMAIN }}" "conference_duration_component" |
||||
muc_component = "{{ .Env.XMPP_MUC_DOMAIN }}" |
@ -0,0 +1,146 @@ |
||||
{{ $LOG_LEVEL := .Env.LOG_LEVEL | default "info" }} |
||||
|
||||
-- Prosody Example Configuration File |
||||
-- |
||||
-- Information on configuring Prosody can be found on our |
||||
-- website at http://prosody.im/doc/configure |
||||
-- |
||||
-- Tip: You can check that the syntax of this file is correct |
||||
-- when you have finished by running: luac -p prosody.cfg.lua |
||||
-- If there are any errors, it will let you know what and where |
||||
-- they are, otherwise it will keep quiet. |
||||
-- |
||||
-- The only thing left to do is rename this file to remove the .dist ending, and fill in the |
||||
-- blanks. Good luck, and happy Jabbering! |
||||
|
||||
|
||||
---------- Server-wide settings ---------- |
||||
-- Settings in this section apply to the whole server and are the default settings |
||||
-- for any virtual hosts |
||||
|
||||
-- This is a (by default, empty) list of accounts that are admins |
||||
-- for the server. Note that you must create the accounts separately |
||||
-- (see http://prosody.im/doc/creating_accounts for info) |
||||
-- Example: admins = { "user1@example.com", "user2@example.net" } |
||||
admins = { {{ .Env.JVB_ADMINS }} } |
||||
|
||||
-- Enable use of libevent for better performance under high load |
||||
-- For more information see: http://prosody.im/doc/libevent |
||||
--use_libevent = true; |
||||
|
||||
-- This is the list of modules Prosody will load on startup. |
||||
-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too. |
||||
-- Documentation on modules can be found at: http://prosody.im/doc/modules |
||||
modules_enabled = { |
||||
|
||||
-- Generally required |
||||
"roster"; -- Allow users to have a roster. Recommended ;) |
||||
"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. |
||||
"tls"; -- Add support for secure TLS on c2s/s2s connections |
||||
"dialback"; -- s2s dialback support |
||||
"disco"; -- Service discovery |
||||
|
||||
-- Not essential, but recommended |
||||
"private"; -- Private XML storage (for room bookmarks, etc.) |
||||
"vcard"; -- Allow users to set vCards |
||||
|
||||
-- These are commented by default as they have a performance impact |
||||
--"privacy"; -- Support privacy lists |
||||
--"compression"; -- Stream compression (Debian: requires lua-zlib module to work) |
||||
|
||||
-- Nice to have |
||||
"version"; -- Replies to server version requests |
||||
"uptime"; -- Report how long server has been running |
||||
"time"; -- Let others know the time here on this server |
||||
"ping"; -- Replies to XMPP pings with pongs |
||||
"pep"; -- Enables users to publish their mood, activity, playing music and more |
||||
"register"; -- Allow users to register on this server using a client and change passwords |
||||
|
||||
-- Admin interfaces |
||||
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands |
||||
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582 |
||||
|
||||
-- HTTP modules |
||||
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" |
||||
--"http_files"; -- Serve static files from a directory over HTTP |
||||
|
||||
-- Other specific functionality |
||||
"posix"; -- POSIX functionality, sends server to background, enables syslog, etc. |
||||
--"groups"; -- Shared roster support |
||||
--"announce"; -- Send announcement to all online users |
||||
--"welcome"; -- Welcome users who register accounts |
||||
--"watchregistrations"; -- Alert admins of registrations |
||||
--"motd"; -- Send a message to users when they log in |
||||
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots. |
||||
{{ if .Env.GLOBAL_MODULES }} |
||||
"{{ join "\";\n\"" (splitList "," .Env.GLOBAL_MODULES) }}"; |
||||
{{ end }} |
||||
}; |
||||
consider_bosh_secure = true; |
||||
https_ports = { } |
||||
-- These modules are auto-loaded, but should you want |
||||
-- to disable them then uncomment them here: |
||||
modules_disabled = { |
||||
-- "offline"; -- Store offline messages |
||||
-- "c2s"; -- Handle client connections |
||||
-- "s2s"; -- Handle server-to-server connections |
||||
}; |
||||
-- Disable account creation by default, for security |
||||
-- For more information see http://prosody.im/doc/creating_accounts |
||||
allow_registration = false; |
||||
daemonize = false; |
||||
pidfile = "/config/data/prosody.pid"; |
||||
-- Force clients to use encrypted connections? This option will |
||||
-- prevent clients from authenticating unless they are using encryption. |
||||
c2s_require_encryption = false |
||||
-- Force certificate authentication for server-to-server connections? |
||||
-- This provides ideal security, but requires servers you communicate |
||||
-- with to support encryption AND present valid, trusted certificates. |
||||
-- NOTE: Your version of LuaSec must support certificate verification! |
||||
-- For more information see http://prosody.im/doc/s2s#security |
||||
s2s_secure_auth = false |
||||
-- Many servers don't support encryption or have invalid or self-signed |
||||
-- certificates. You can list domains here that will not be required to |
||||
-- authenticate using certificates. They will be authenticated using DNS. |
||||
--s2s_insecure_domains = { "gmail.com" } |
||||
-- Even if you leave s2s_secure_auth disabled, you can still require valid |
||||
-- certificates for some domains by specifying a list here. |
||||
--s2s_secure_domains = { "jabber.org" } |
||||
-- Select the authentication backend to use. The 'internal' providers |
||||
-- use Prosody's configured data storage to store the authentication data. |
||||
-- To allow Prosody to offer secure authentication mechanisms to clients, the |
||||
-- default provider stores passwords in plaintext. If you do not trust your |
||||
-- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed |
||||
-- for information about using the hashed backend. |
||||
authentication = "internal_hashed" |
||||
-- Select the storage backend to use. By default Prosody uses flat files |
||||
-- in its configured data directory, but it also supports more backends |
||||
-- through modules. An "sql" backend is included by default, but requires |
||||
-- additional dependencies. See http://prosody.im/doc/storage for more info. |
||||
--storage = "sql" -- Default is "internal" (Debian: "sql" requires one of the |
||||
-- lua-dbi-sqlite3, lua-dbi-mysql or lua-dbi-postgresql packages to work) |
||||
-- For the "sql" backend, you can uncomment *one* of the below to configure: |
||||
--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename. |
||||
--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" } |
||||
--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" } |
||||
-- Logging configuration |
||||
-- For advanced logging see http://prosody.im/doc/logging |
||||
-- |
||||
-- Debian: |
||||
-- Logs info and higher to /var/log |
||||
-- Logs errors to syslog also |
||||
log = { |
||||
{ levels = {min = "{{ $LOG_LEVEL }}"}, to = "console"}; |
||||
} |
||||
{{ if .Env.GLOBAL_CONFIG }} |
||||
{{ join "\n" (splitList "\\n" .Env.GLOBAL_CONFIG) }} |
||||
{{ end }} |
||||
-- Enable use of native prosody 0.11 support for epoll over select |
||||
network_backend = "epoll"; |
||||
-- Set the TCP backlog to 511 since the kernel rounds it up to the next power of 2: 512. |
||||
network_settings = { |
||||
tcp_backlog = 511; |
||||
} |
||||
component_interface = { "*" } |
||||
data_path = "/config/data" |
||||
Include "conf.d/*.cfg.lua" |
@ -1,100 +0,0 @@ |
||||
{{- $xmppServer := include "jitsi-meet.name-prosody" . -}} |
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
metadata: |
||||
name: {{ include "jitsi-meet.name-jvb" . }} |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
spec: |
||||
serviceName: {{ include "jitsi-meet.name-jvb" . }} |
||||
replicas: {{ .Values.jvb.replicaCount }} |
||||
selector: |
||||
matchLabels: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-jvb" . }} |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-jvb" . }} |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
||||
spec: |
||||
{{- with .Values.imagePullSecrets }} |
||||
imagePullSecrets: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
serviceAccountName: {{ include "jitsi-meet.serviceAccountName" . }} |
||||
securityContext: |
||||
{{- toYaml .Values.jvb.podSecurityContext | nindent 8 }} |
||||
containers: |
||||
- name: {{ include "jitsi-meet.name-jvb" . }} |
||||
image: "{{ .Values.jvb.image.repository }}:{{ .Values.jvb.image.tag }}" |
||||
imagePullPolicy: {{ .Values.jvb.image.pullPolicy }} |
||||
env: |
||||
- name: XMPP_SERVER |
||||
value: {{ include "jitsi-meet.name-prosody" . }} |
||||
{{- if .Values.jicofo.userAuth.enabled }} |
||||
- name: JICOFO_AUTH_USER |
||||
value: {{ .Values.jicofo.userAuth.name }} |
||||
- name: JICOFO_AUTH_PASSWORD |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ template "jitsi-meet.name-jicofo-config" . }} |
||||
key: JICOFO_AUTH_PASSWORD |
||||
{{- end }} |
||||
{{- if .Values.jvb.userAuth.enabled }} |
||||
- name: JVB_AUTH_USER |
||||
value: {{ .Values.jvb.userAuth.name }} |
||||
- name: JVB_AUTH_PASSWORD |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ template "jitsi-meet.name-jvb-config" . }} |
||||
key: JVB_AUTH_PASSWORD |
||||
{{- end }} |
||||
{{ if .Values.jicofo.componentSecret }} |
||||
- name: JICOFO_COMPONENT_SECRET |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ include "jitsi-meet.name-jicofo-config" . }} |
||||
key: JICOFO_COMPONENT_SECRET |
||||
{{ end }} |
||||
- name: JVB_PORT |
||||
value: "30300" |
||||
{{- with .Values.jvb.environment }} |
||||
{{- toYaml . | nindent 12 }} |
||||
{{- end }} |
||||
ports: |
||||
- name: video |
||||
containerPort: 30300 |
||||
protocol: UDP |
||||
volumeMounts: |
||||
- name: dockersock |
||||
mountPath: "/var/run/docker.sock" |
||||
- name: config |
||||
mountPath: "/var/app" |
||||
lifecycle: |
||||
podStart: |
||||
exec: |
||||
- /bin/bash |
||||
- -c |
||||
- cp /var/app/sip-communicator.properties /config/sip-communicator.properties |
||||
resources: |
||||
{{- toYaml .Values.jvb.resources | nindent 12 }} |
||||
volumes: |
||||
- name: dockersock |
||||
hostPath: |
||||
path: /var/run/docker.sock |
||||
- name: config |
||||
configMap: |
||||
name: {{ template "jitsi-meet.name-jvb-config" . }}-cm |
||||
{{- with .Values.jvb.nodeSelector }} |
||||
nodeSelector: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with .Values.jvb.affinity }} |
||||
affinity: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with .Values.jvb.tolerations }} |
||||
tolerations: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
@ -0,0 +1,9 @@ |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: {{ template "jitsi-meet.name-jicofo-config" . }}-cm |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
data: |
||||
sip-communicator.properties: |- |
||||
{{- .Files.Get "configs/jicofo/sip-communicator.properties" | nindent 4 }} |
@ -0,0 +1,111 @@ |
||||
{{- $root := . -}} |
||||
{{- $name := include "jitsi-meet.name-jvb" $root -}} |
||||
{{- range $index, $nbr := until (.Values.prosody.replicaCount | int) }} |
||||
--- |
||||
{{- $depName := printf "%s-%d" $name $nbr -}} |
||||
apiVersion: apps/v1beta2 |
||||
kind: Deployment |
||||
metadata: |
||||
name: {{ $depName | quote }} |
||||
labels: |
||||
{{ include "jitsi-meet.labels" $root | indent 4 }} |
||||
spec: |
||||
replicas: {{ $root.Values.jvb.replicaCount }} |
||||
selector: |
||||
matchLabels: |
||||
app.kubernetes.io/name: {{ $depName | quote }} |
||||
app.kubernetes.io/instance: {{ $root.Release.Name }} |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app.kubernetes.io/name: {{ $depName | quote }} |
||||
app.kubernetes.io/instance: {{ $root.Release.Name }} |
||||
spec: |
||||
{{- with $root.Values.imagePullSecrets }} |
||||
imagePullSecrets: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
serviceAccountName: {{ include "jitsi-meet.serviceAccountName" $root }} |
||||
securityContext: |
||||
{{- toYaml $root.Values.jvb.securityContext | nindent 8 }} |
||||
containers: |
||||
- name: {{ $name | quote }} |
||||
image: {{ printf "%s:%s" $root.Values.jvb.image.repository $root.Values.jvb.image.tag | quote }} |
||||
imagePullPolicy: {{ $root.Values.jvb.image.pullPolicy | quote }} |
||||
securityContext: |
||||
capabilities: |
||||
add: |
||||
- SYS_RESOURCE |
||||
- NET_ADMIN |
||||
{{- with $root.Values.jvb.podSecurityContext }} |
||||
{{- toYaml . | nindent 12 }} |
||||
{{- end }} |
||||
env: |
||||
- name: XMPP_SERVER |
||||
value: {{ include "jitsi-meet.name-prosody" $root }} |
||||
- name: PROSODY_INSTANCE |
||||
value: {{ printf "%d" $nbr | quote }} |
||||
{{- if $root.Values.jicofo.userAuth.enabled }} |
||||
- name: JICOFO_AUTH_USER |
||||
value: {{ $root.Values.jicofo.userAuth.name }} |
||||
- name: JICOFO_AUTH_PASSWORD |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ template "jitsi-meet.name-jicofo-config" $root }} |
||||
key: JICOFO_AUTH_PASSWORD |
||||
{{- end }} |
||||
{{- if $root.Values.jvb.userAuth.enabled }} |
||||
- name: JVB_AUTH_USER |
||||
value: {{ $root.Values.jvb.userAuth.name }} |
||||
- name: JVB_AUTH_PASSWORD |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ template "jitsi-meet.name-jvb-config" $root }} |
||||
key: JVB_AUTH_PASSWORD |
||||
{{- end }} |
||||
{{- if $root.Values.jicofo.componentSecret }} |
||||
- name: JICOFO_COMPONENT_SECRET |
||||
valueFrom: |
||||
secretKeyRef: |
||||
name: {{ include "jitsi-meet.name-jicofo-config" $root }} |
||||
key: JICOFO_COMPONENT_SECRET |
||||
{{- end }} |
||||
- name: JVB_PORT |
||||
value: {{ printf "%s%s" "3030" (toString $nbr) | quote }} |
||||
{{- with $root.Values.jvb.environment }} |
||||
{{- toYaml . | nindent 12 }} |
||||
{{- end }} |
||||
{{- with $root.Values.common.environment }} |
||||
{{- toYaml . | nindent 12 }} |
||||
{{- end }} |
||||
ports: |
||||
- name: video |
||||
containerPort: {{ printf "%s%s" "3030" (toString $nbr) | int }} |
||||
protocol: UDP |
||||
volumeMounts: |
||||
- name: dockersock |
||||
mountPath: "/var/run/docker.sock" |
||||
- name: config |
||||
mountPath: "/defaults" |
||||
resources: |
||||
{{- toYaml $root.Values.jvb.resources | nindent 12 }} |
||||
volumes: |
||||
- name: dockersock |
||||
hostPath: |
||||
path: /var/run/docker.sock |
||||
- name: config |
||||
configMap: |
||||
name: {{ template "jitsi-meet.name-jvb-config" $root }}-cm |
||||
{{- with $root.Values.jvb.nodeSelector }} |
||||
nodeSelector: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with $root.Values.jvb.affinity }} |
||||
affinity: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with $root.Values.jvb.tolerations }} |
||||
tolerations: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- end }} |
@ -0,0 +1,31 @@ |
||||
{{- $root := . }} |
||||
{{- $name := include "jitsi-meet.name-jvb" $root }} |
||||
{{- range $index, $nbr := until (.Values.prosody.replicaCount | int) }} |
||||
{{- $port := printf "%s%s" "3030" (toString $nbr) }} |
||||
{{- $target := printf "%s-%d" $name $nbr}} |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: {{ $target | quote }} |
||||
labels: |
||||
{{ include "jitsi-meet.labels" $root | indent 4 }} |
||||
{{- with $root.Values.jvb.service.annotations }} |
||||
annotations: |
||||
{{- toYaml . | nindent 4 }} |
||||
{{- end }} |
||||
spec: |
||||
type: NodePort |
||||
externalTrafficPolicy: Local |
||||
sessionAffinity: {{ $root.Values.jvb.service.sessionAffinity }} |
||||
{{- if $root.Values.jvb.service.sessionAffinityConfig }} |
||||
{{- toYaml $root.Values.jvb.service.sessionAffinityConfig }} |
||||
{{- end }} |
||||
ports: |
||||
- port: {{ atoi $port }} |
||||
protocol: UDP |
||||
targetPort: video |
||||
nodePort: {{ atoi $port }} |
||||
selector: |
||||
app.kubernetes.io/name: {{ $target | quote }} |
||||
app.kubernetes.io/instance: {{ $root.Release.Name }} |
||||
{{- end }} |
@ -0,0 +1,11 @@ |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: {{ template "jitsi-meet.name-prosody" . }}-config-cm |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
data: |
||||
prosody.cfg.lua: |- |
||||
{{- .Files.Get "configs/prosody/prosody.cfg.lua" | b64enc | nindent 4 }} |
||||
jitsi-meet.cfg.lua: |- |
||||
{{- .Files.Get "configs/prosody/jitsi-meet.cfg.lua" | b64enc | nindent 4 }} |
@ -1,25 +0,0 @@ |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: {{ include "jitsi-meet.name-jvb" . }} |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
{{- with .Values.jvb.service.annotations }} |
||||
annotations: |
||||
{{- toYaml . | nindent 4 }} |
||||
{{- end }} |
||||
spec: |
||||
type: NodePort |
||||
externalTrafficPolicy: Local |
||||
sessionAffinity: {{ .Values.jvb.service.sessionAffinity }} |
||||
{{ if .Values.jvb.service.sessionAffinityConfig }} |
||||
{{- toYaml .Values.jvb.service.sessionAffinityConfig }} |
||||
{{ end }} |
||||
ports: |
||||
- port: 30300 |
||||
protocol: UDP |
||||
targetPort: video |
||||
nodePort: 30300 |
||||
selector: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-jvb" . }} |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
@ -0,0 +1,16 @@ |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: {{ include "jitsi-meet.name-web" . }}-jwt |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
spec: |
||||
type: {{ .Values.web.service.type }} |
||||
ports: |
||||
- port: 4180 |
||||
targetPort: http |
||||
protocol: TCP |
||||
name: http |
||||
selector: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-web" . }}-jwt |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
@ -1,9 +0,0 @@ |
||||
{{- if .Values.jvb.ingress.enabled -}} |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: tcp-services |
||||
namespace: {{ .Values.serviceAccount.create }} |
||||
data: |
||||
{{ include "jitsi-meet.tcp-route-table-entry" . }} |
||||
{{- end -}} |
@ -1,9 +0,0 @@ |
||||
{{- if .Values.jvb.ingress.enabled -}} |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: udp-services |
||||
namespace: {{ .Values.serviceAccount.create }} |
||||
data: |
||||
{{ include "jitsi-meet.udp-route-table-entry" . }} |
||||
{{- end -}} |
@ -0,0 +1,56 @@ |
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
metadata: |
||||
name: {{ include "jitsi-meet.name-web" . }}-jwt |
||||
labels: |
||||
{{ include "jitsi-meet.labels" . | indent 4 }} |
||||
spec: |
||||
replicas: {{ .Values.web.replicaCount }} |
||||
selector: |
||||
matchLabels: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-web" . }}-jwt |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app.kubernetes.io/name: {{ include "jitsi-meet.name-web" . }}-jwt |
||||
app.kubernetes.io/instance: {{ .Release.Name }} |
||||
spec: |
||||
{{- with .Values.imagePullSecrets }} |
||||
imagePullSecrets: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
serviceAccountName: {{ template "jitsi-meet.serviceAccountName" . }} |
||||
securityContext: |
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }} |
||||
containers: |
||||
- name: {{ include "jitsi-meet.name-jwt-sidecar" . }} |
||||
image: quay.io/oauth2-proxy/oauth2-proxy:latest |
||||
imagePullPolicy: IfNotPresent |
||||
args: |
||||
- --http-address=0.0.0.0:4180 |
||||
{{- range $key, $value := .Values.web.jwtsidecar.extraArgs }} |
||||
{{- if $value }} |
||||
- --{{ $key }}={{ $value }} |
||||
{{- else }} |
||||
- --{{ $key }} |
||||
{{- end }} |
||||
{{- end }} |
||||
ports: |
||||
- name: http |
||||
containerPort: 4180 |
||||
protocol: TCP |
||||
resources: |
||||
{{- toYaml .Values.web.jwtsidecar.resources | nindent 12 }} |
||||
{{- with .Values.web.nodeSelector }} |
||||
nodeSelector: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with .Values.web.affinity }} |
||||
affinity: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
||||
{{- with .Values.web.tolerations }} |
||||
tolerations: |
||||
{{- toYaml . | nindent 8 }} |
||||
{{- end }} |
Loading…
Reference in new issue