-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
62 lines (60 loc) · 1.79 KB
/
deployment.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: janus
namespace: default # Omit or change if not using a namespace
spec:
replicas: 2
selector:
matchLabels:
app: janus
serviceName: "janus-service" # Required for StatefulSet networking
template:
metadata:
labels:
app: janus
spec:
initContainers:
- name: init-elevated
image: busybox:latest
command: ["sh", "-c"]
args:
- |
chmod -R 777 /recordings/;
securityContext:
privileged: true
volumeMounts:
- name: janus-recordings
mountPath: /recordings/
containers:
- name: janus
# you can build your own image and push it to a registry from https://github.com/flutterjanus/JanusDocker
image: shivanshtalwar0/janus-server:latest # for x86_64 => shivanshtalwar0/janus-server:linux-amd64
resources:
requests:
memory: "1000Mi" # Minimum memory the container requires
cpu: "1000m" # Minimum CPU the container requires
limits:
memory: "1000Mi" # Maximum memory the container can use
cpu: "1000m" # Maximum CPU the container can use
volumeMounts:
- name: janus-config
mountPath: /opt/janus/etc/janus
- name: janus-recordings
mountPath: /recordings
volumes:
- name: janus-config
configMap:
name: janus-config
- name: janus-recordings
hostPath:
path: /recordings
emptyDir: {}
volumeClaimTemplates:
- metadata:
name: janus-recordings
spec:
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 100Gi