forked from hpi-schul-cloud/jitsi-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprosody-deployment.yaml
More file actions
108 lines (108 loc) · 3.52 KB
/
Copy pathprosody-deployment.yaml
File metadata and controls
108 lines (108 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: jitsi
labels:
k8s-app: prosody
name: prosody
spec:
replicas: 1 # one prosody instance per shard
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
k8s-app: prosody
shard: "0"
template:
metadata:
labels:
k8s-app: prosody
shard: "0"
spec:
volumes:
- name: prosody
configMap:
name: prosody
items:
- key: mod_prometheus.lua
path: mod_prometheus.lua
- key: mod_measure_stanza_counts.lua
path: mod_measure_stanza_counts.lua
- key: mod_measure_client_presence.lua
path: mod_measure_client_presence.lua
containers:
- name: prosody
resources:
limits:
memory: 300Mi
cpu: 300m
requests:
memory: 300Mi
cpu: 300m
image: jitsi/prosody:stable-4548-1
imagePullPolicy: Always
ports:
- name: metrics
containerPort: 5280
readinessProbe:
## the command that is called obeys standard exit codes
exec:
command:
- prosodyctl
- --config
- /config/prosody.cfg.lua
- status
volumeMounts:
# add-ons that allow exporting of metrics to prometheus (mod_prometheus.lua)
# or enrich the available stats (mod_measure_stanza_counts.lua,
# mod_measure_client_presence.lua)
- name: prosody
mountPath: /prosody-plugins-custom/mod_prometheus.lua
subPath: mod_prometheus.lua
- name: prosody
mountPath: /usr/lib/prosody/modules/mod_measure_stanza_counts.lua
subPath: mod_measure_stanza_counts.lua
- name: prosody
mountPath: /usr/lib/prosody/modules/mod_measure_client_presence.lua
subPath: mod_measure_client_presence.lua
env:
- name: XMPP_DOMAIN
value: meet.jitsi
- name: XMPP_AUTH_DOMAIN
value: auth.meet.jitsi
- name: XMPP_MUC_DOMAIN
value: muc.meet.jitsi
- name: XMPP_INTERNAL_MUC_DOMAIN
value: internal-muc.meet.jitsi
- name: JICOFO_COMPONENT_SECRET
valueFrom:
secretKeyRef:
name: jitsi-config
key: JICOFO_COMPONENT_SECRET
- name: JVB_AUTH_USER
value: jvb
- name: JVB_AUTH_PASSWORD
valueFrom:
secretKeyRef:
name: jitsi-config
key: JVB_AUTH_PASSWORD
- name: JICOFO_AUTH_USER
value: focus
- name: JICOFO_AUTH_PASSWORD
valueFrom:
secretKeyRef:
name: jitsi-config
key: JICOFO_AUTH_PASSWORD
- name: TZ
value: Europe/Berlin
- name: JVB_TCP_HARVESTER_DISABLED
value: "true"
# activate add-ons that enrich the available stats of prosody
- name: GLOBAL_MODULES
value: prometheus,measure_stanza_counts,measure_client_presence
# config to allow exporting metrics in prometheus format by prometheus add-on
- name: GLOBAL_CONFIG
value: statistics = "internal";\nstatistics_interval = 15;