summaryrefslogtreecommitdiff
path: root/roles/apps/jitsi/meet/templates/pod.yml.j2
blob: 1504211a26561f30144c5acef402fa66c1fb9a5c (plain) (blame)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
apiVersion: v1
kind: Pod
metadata:
  name: "jitsi-meet-{{ jitsi_meet_inst_name }}"
spec:
  initContainers:
  - name: prepare-config
    image: busybox
    workingDir: /config
    command:
      - sh
      - -c
      - mkdir -p jicofo prosody web jvb
    volumeMounts:
    - name: config
      mountPath: /config
  containers:
  - name: jicofo
    image: "jitsi/jicofo:{{ jitsi_meet_version }}"
    resources:
      requests:
        memory: "1Gi"
      limits:
        memory: "4Gi"
    volumeMounts:
    - name: config
      subPath: jicofo
      mountPath: /config
    env:
    - name: XMPP_SERVER
      value: 127.0.0.1
    - name: XMPP_DOMAIN
      value: meet.jitsi
    - name: XMPP_AUTH_DOMAIN
      value: auth.meet.jitsi
    - name: XMPP_INTERNAL_MUC_DOMAIN
      value: internal-muc.meet.jitsi

    - name: JICOFO_COMPONENT_SECRET
      value: "{{ jitsi_meet_secrets.jicofo_component_secret }}"
    - name: JICOFO_AUTH_USER
      value: focus
    - name: JICOFO_AUTH_PASSWORD
      value: "{{ jitsi_meet_secrets.jicofo_auth_password }}"

    - name: JVB_BREWERY_MUC
      value: jvbbrewery

    - name: TZ
      value: {{ jitsi_meet_timezone }}

  - name: prosody
    image: "jitsi/prosody:{{ jitsi_meet_version }}"
    resources:
      requests:
        memory: "128Mi"
      limits:
        memory: "512Mi"
    volumeMounts:
    - name: scripts
      subPath: prosody/cont-init.sh
      mountPath: /etc/cont-init.d/99-k8s
    - name: config
      subPath: prosody
      mountPath: /config
    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
      value: "{{ jitsi_meet_secrets.jicofo_component_secret }}"
    - name: JICOFO_AUTH_USER
      value: focus
    - name: JICOFO_AUTH_PASSWORD
      value: "{{ jitsi_meet_secrets.jicofo_auth_password }}"

    - name: JVB_AUTH_USER
      value: jvb
    - name: JVB_AUTH_PASSWORD
      value: "{{ jitsi_meet_secrets.jvb_auth_password }}"
    - name: JVB_TCP_HARVESTER_DISABLED
      value: "true"

    - name: TZ
      value: {{ jitsi_meet_timezone }}

  - name: web
    image: "jitsi/web:{{ jitsi_meet_version }}"
    resources:
      requests:
        memory: "256Mi"
      limits:
        memory: "1Gi"
    ports:
    - protocol: TCP
      containerPort: 80
      hostPort: {{ jitsi_meet_http_port }}
      hostIP: 127.0.0.1
    volumeMounts:
    - name: config
      subPath: web
      mountPath: /config
    env:
    - name: DISABLE_HTTPS
      value: "1"
    - name: ENABLE_HTTP_REDIRECT
      value: "0"

    - name: XMPP_SERVER
      value: 127.0.0.1
    - name: XMPP_DOMAIN
      value: meet.jitsi
    - name: XMPP_AUTH_DOMAIN
      value: auth.meet.jitsi
    - name: XMPP_INTERNAL_MUC_DOMAIN
      value: internal-muc.meet.jitsi
    - name: XMPP_BOSH_URL_BASE
      value: http://127.0.0.1:5280
    - name: XMPP_MUC_DOMAIN
      value: muc.meet.jitsi

    - name: JICOFO_AUTH_USER
      value: focus

    - name: JVB_TCP_HARVESTER_DISABLED
      value: "true"

    - name: TZ
      value: {{ jitsi_meet_timezone }}

  - name: jvb
    image: "jitsi/jvb:{{ jitsi_meet_version }}"
    resources:
      requests:
        memory: "1Gi"
      limits:
        memory: "4Gi"
    ports:
    - protocol: UDP
      containerPort: {{ jitsi_meet_jvb_port }}
      hostPort: {{ jitsi_meet_jvb_port }}
      hostIP: "{{ external_ip | default(ansible_default_ipv4.address) }}"
    volumeMounts:
    - name: config
      subPath: jvb
      mountPath: /config
    env:
    - name: XMPP_SERVER
      value: 127.0.0.1
    - name: XMPP_DOMAIN
      value: meet.jitsi
    - name: XMPP_AUTH_DOMAIN
      value: auth.meet.jitsi
    - name: XMPP_INTERNAL_MUC_DOMAIN
      value: internal-muc.meet.jitsi

    - name: JICOFO_AUTH_USER
      value: focus
    - name: JICOFO_AUTH_PASSWORD
      value: "{{ jitsi_meet_secrets.jicofo_auth_password }}"

    - name: JVB_AUTH_USER
      value: jvb
    - name: JVB_AUTH_PASSWORD
      value: "{{ jitsi_meet_secrets.jvb_auth_password }}"
    - name: JVB_BREWERY_MUC
      value: jvbbrewery
    - name: JVB_PORT
      value: "{{ jitsi_meet_jvb_port }}"
    - name: JVB_TCP_HARVESTER_DISABLED
      value: "true"
    - name: DOCKER_HOST_ADDRESS
      value: "{{ external_ip | default(ansible_default_ipv4.address) }}"

    - name: TZ
      value: {{ jitsi_meet_timezone }}

  volumes:
  - name: scripts
    hostPath:
      path: "{{ jitsi_meet_base_path }}/{{ jitsi_meet_inst_name }}/scripts"
  - name: config
    emptyDir:
      medium: Memory