forked from magcle/Kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkurento-media-server.yaml
56 lines (56 loc) · 1.17 KB
/
kurento-media-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
apiVersion: apps/v1 #beta2 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: kms-deployment
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: kms
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: kms
spec:
containers:
- name: kms
image: kurento/kurento-media-server:6.7.1-xenial
env:
- name: "KMS_TURN_URL"
value: "nordri:[email protected]:3478"
ports:
- containerPort: 8888
---
apiVersion: v1
kind: Service
metadata:
name: kms-service
labels:
app: kms
spec:
ports:
- port: 8888
targetPort: 8888
protocol: TCP
name: kms-port
selector:
app: kms
type: ClusterIP
# ---
# apiVersion: extensions/v1beta1
# kind: Ingress
# metadata:
# name: kurento-ingress
# annotations:
# nginx.org/websocket-services: "kms-service"
# spec:
# rules:
# - host: kurento.local
# http:
# paths:
# - backend:
# serviceName: kms-service
# servicePort: 8888
# path: /kurento