helm/coturn/daemonset.yaml

63 lines
1.6 KiB
YAML
Raw Normal View History

2022-08-15 00:29:50 +00:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
namespace: coturn
name: coturn
labels:
app.kubernetes.io/name: coturn
app.kubernetes.io/instance: coturn
app.kubernetes.io/version: 0.0.1
spec:
selector:
matchLabels:
app.kubernetes.io/name: coturn
app.kubernetes.io/instance: coturn
app.kubernetes.io/version: 0.0.1
template:
metadata:
labels:
app.kubernetes.io/name: coturn
app.kubernetes.io/instance: coturn
app.kubernetes.io/version: 0.0.1
spec:
hostNetwork: true
volumes:
- name: conf
configMap:
name: coturn-conf
containers:
- name: coturn
image: coturn/coturn
imagePullPolicy: Always
livenessProbe:
tcpSocket:
port: 3478
initialDelaySeconds: 5
readinessProbe:
tcpSocket:
port: 3478
volumeMounts:
- mountPath: /conf
name: conf
2022-08-20 06:19:54 +00:00
- mountPath: /certs
name: certs
2022-08-15 00:29:50 +00:00
ports:
- name: turn-port1
containerPort: 3478
hostPort: 3478
protocol: UDP
#- name: turn-port1-tls
# containerPort: 5349
# hostPort: 5349
# protocol: UDP
- name: turn-port2
containerPort: 3478
hostPort: 3478
protocol: TCP
#- name: turn-port2-tls
# containerPort: 5349
# hostPort: 5349
# protocol: TCP
args:
- -c /conf/turnserver.conf