forked from mpromonet/webrtc-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
57 lines (57 loc) · 1.05 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: webrtc-streamer
name: webrtc-streamer
spec:
replicas: 3
selector:
matchLabels:
app: webrtc-streamer
template:
metadata:
labels:
app: webrtc-streamer
spec:
containers:
- image: mpromonet/webrtc-streamer
args: ["-S","-C","config.json"]
name: webrtc-streamer
ports:
- name: web
containerPort: 8000
- name: stun
protocol: UDP
containerPort: 3478
---
apiVersion: v1
kind: Service
metadata:
name: webrtc-streamer
annotations:
traefik.ingress.kubernetes.io/affinity: "true"
spec:
selector:
app: webrtc-streamer
ports:
- name: web
port: 8000
- name: stun
protocol: UDP
port: 3478
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app: webrtc-streamer
name: webrtc-streamer
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: webrtc-streamer
servicePort: 8000