forked from rraj-gautam/k8s-jibri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha2-statefulset.yaml
102 lines (99 loc) · 2.5 KB
/
a2-statefulset.yaml
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: jibri-two
labels:
component: jibri
namespace: jibri
spec:
serviceName: jibir-one
replicas: 20
selector:
matchLabels:
component: jibri
template:
metadata:
labels:
component: jibri
spec:
nodeSelector:
asound: alsa2
hostAliases:
- ip: '1.1.1.1'
hostnames:
- example.com
securityContext:
fsGroup: 63
initContainers:
- name: init-set
image: xuxant/init-container
command:
- /tmp/copyfile.sh
volumeMounts:
- name: home-dir
mountPath: /home/jibri
containers:
- name: jibri
image: docker.io/jitsi/jibri
resources:
limits:
memory: '4G'
cpu: '2'
requests:
memory: '2G'
cpu: '1'
envFrom:
- configMapRef:
name: jibri-env
volumeMounts:
- name: dns-resolver
mountPath: '/etc/resolv.conf'
subPath: resolv.conf
readOnly: false
- name: jibri-recorder
mountPath: /config/recordings
- name: jibri-logs
mountPath: /config/logs
- name: snd
mountPath: /dev/snd
- name: shm
mountPath: /dev/shm
- name: finalize-sh
mountPath: /config/finalize.sh
subPath: finalize.sh
# - name: asoundrc
# mountPath: /home/jibri/.asoundrc
# subpath: .asoundrc
- name: home-dir
mountPath: /home/jibri
securityContext:
privileged: true
capabilities:
add:
- NET_BIND_SERVICE
- SYS_ADMIN
volumes:
- name: dns-resolver
configMap:
name: dns-resolver
- name: jibri-recorder
persistentVolumeClaim:
claimName: jibri-volume-claim-2
- name: jibri-logs
emptyDir: {}
- name: snd
hostPath:
path: /dev/snd
- name: finalize-sh
configMap:
name: finalize-sh
defaultMode: 0777
- name: home-dir
emptyDir: {}
# - name: asoundrc
# configMap:
# name: assound-1
# defaultMode: 0644
- name: shm
hostPath:
path: /dev/shm