apiVersion: apps/v1
kind: Deployment
metadata:
  name: coturn
spec:
  replicas: 1
  selector:
    matchLabels:
      app: coturn
  template:
    metadata:
      labels:
        app: coturn
    spec:
      containers:
      - name: coturn
        image: nmatsui/kurento-robot-camera-coturn:4.5.0.8
        imagePullPolicy: Always
        args: ["-c", "/opt/coturn/turnserver.conf"]
        ports:
        - containerPort: 80
          name: coturn-listen
          protocol: UDP
        - containerPort: 49150
          name: coturn-udp0
          protocol: UDP
        - containerPort: 49151
          name: coturn-udp1
          protocol: UDP
        - containerPort: 49152
          name: coturn-udp2
          protocol: UDP
        - containerPort: 49153
          name: coturn-udp3
          protocol: UDP
        - containerPort: 49154
          name: coturn-udp4
          protocol: UDP
        - containerPort: 49155
          name: coturn-udp5
          protocol: UDP
        - containerPort: 49156
          name: coturn-udp6
          protocol: UDP
        - containerPort: 49157
          name: coturn-udp7
          protocol: UDP
        - containerPort: 49158
          name: coturn-udp8
          protocol: UDP
        - containerPort: 49159
          name: coturn-udp9
          protocol: UDP
        volumeMounts:
        - name: conf
          mountPath: "/opt/coturn"
          readOnly: true
      volumes:
      - name: conf
        secret:
          secretName: "turnserver-conf"
