forked from magcle/Kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoturn-auth.yaml
50 lines (50 loc) · 1.02 KB
/
coturn-auth.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
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: coturn-auth
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: coturn
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: coturn
spec:
hostNetwork: true
containers:
- name: coturn-auth
image: kurento/coturn-auth
env:
- name: "LISTENING_PORT"
value: "3478"
- name: "REALM"
value: "kurento.org"
- name: "USER"
value: "nordri"
- name: "PASSWORD"
value: "s3cr3t"
ports:
- containerPort: 3478
nodeSelector:
networking: host
---
apiVersion: v1
kind: Service
metadata:
name: coturn-auth
labels:
app: coturn
spec:
ports:
- port: 3478
targetPort: 3478
protocol: TCP
name: coturn-port
selector:
app: coturn
type: NodePort