Added stun/turn yamls

This commit is contained in:
Clemens Geibel 2022-04-22 11:35:22 +02:00
parent 129ca88dfb
commit 20fac8fe90
2 changed files with 73 additions and 0 deletions

View 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

View 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