forked from l7mp/stunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mediasoup-server.yaml
111 lines (111 loc) · 2.5 KB
/
mediasoup-server.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
102
103
104
105
106
107
108
109
110
111
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: mediasoup-server
name: mediasoup-server
namespace: mediasoup
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: mediasoup-server
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/name: mediasoup-server
spec:
containers:
- env:
- name: PROTOO_LISTEN_PORT
value: "443"
- name: MEDIASOUP_ANNOUNCED_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
image: l7mp/mediasoup-demo-docker:latest
imagePullPolicy: IfNotPresent
name: mediasoup-server
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: mediasoup-server
namespace: mediasoup
spec:
ports:
- name: https-443
port: 443
protocol: TCP
targetPort: 443
selector:
app.kubernetes.io/name: mediasoup-server
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/upstream-hash-by: "$arg_roomId"
name: mediasoup-server
namespace: mediasoup
spec:
rules:
- host: mediasoup-ingressserviceip.nip.io
http:
paths:
- backend:
service:
name: mediasoup-server
port:
number: 443
path: /
pathType: Prefix
tls:
- hosts:
- mediasoup-ingressserviceip.nip.io
secretName: mediasoup-demo-tls
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
generation: 1
name: letsencrypt-prod
spec:
acme:
email: [email protected]
privateKeySecretRef:
name: letsencrypt-secret-prod
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- http01:
ingress:
class: nginx
---