From 20fac8fe90496b98de3b081d71b72d5e309bc499 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 22 Apr 2022 11:35:22 +0200 Subject: [PATCH] Added stun/turn yamls --- src/main/resources/coturn/daemonset.yaml | 42 ++++++++++++++++++++++++ src/main/resources/coturn/service.yaml | 31 +++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 src/main/resources/coturn/daemonset.yaml create mode 100644 src/main/resources/coturn/service.yaml diff --git a/src/main/resources/coturn/daemonset.yaml b/src/main/resources/coturn/daemonset.yaml new file mode 100644 index 0000000..0f46520 --- /dev/null +++ b/src/main/resources/coturn/daemonset.yaml @@ -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 diff --git a/src/main/resources/coturn/service.yaml b/src/main/resources/coturn/service.yaml new file mode 100644 index 0000000..5469186 --- /dev/null +++ b/src/main/resources/coturn/service.yaml @@ -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