Added stun/turn yamls
This commit is contained in:
parent
129ca88dfb
commit
20fac8fe90
2 changed files with 73 additions and 0 deletions
42
src/main/resources/coturn/daemonset.yaml
Normal file
42
src/main/resources/coturn/daemonset.yaml
Normal file
|
@ -0,0 +1,42 @@
|
|||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
namespace: coturn
|
||||
name: coturn
|
||||
labels:
|
||||
app.kubernetes.io/name: coturn
|
||||
app.kubernetes.io/instance: coturn
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: coturn
|
||||
app.kubernetes.io/instance: coturn
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: coturn
|
||||
app.kubernetes.io/instance: coturn
|
||||
spec:
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: coturn
|
||||
image: coturn/coturn:4.5.2-r11
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: turn-port1-udp
|
||||
containerPort: 3478
|
||||
hostPort: 3478
|
||||
protocol: UDP
|
||||
- name: turn-port1-tcp
|
||||
containerPort: 3478
|
||||
hostPort: 3478
|
||||
protocol: TCP
|
||||
- name: turn-port2-udp
|
||||
containerPort: 5349
|
||||
hostPort: 5349
|
||||
protocol: UDP
|
||||
- name: turn-port2-tcp
|
||||
containerPort: 5349
|
||||
hostPort: 5349
|
||||
protocol: TCP
|
31
src/main/resources/coturn/service.yaml
Normal file
31
src/main/resources/coturn/service.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: coturn
|
||||
namespace: coturn
|
||||
labels:
|
||||
app.kubernetes.io/name: coturn
|
||||
app.kubernetes.io/instance: coturn
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 3478
|
||||
targetPort: 3478
|
||||
protocol: UDP
|
||||
name: turn-port1-udp
|
||||
- port: 3478
|
||||
targetPort: 3478
|
||||
protocol: TCP
|
||||
name: turn-port1-tcp
|
||||
- port: 5349
|
||||
targetPort: 5349
|
||||
protocol: UDP
|
||||
name: turn-port2-udp
|
||||
- port: 5349
|
||||
targetPort: 5349
|
||||
protocol: TCP
|
||||
name: turn-port2-tcp
|
||||
|
||||
selector:
|
||||
app.kubernetes.io/name: coturn
|
||||
app.kubernetes.io/instance: coturn
|
Loading…
Reference in a new issue