apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: kurento
spec:
  serviceName: "kurento"
  replicas: 1
  selector:
    matchLabels:
      app: kurento
  template:
    metadata:
      labels:
        app: kurento
    spec:
      containers:
      - name: kurento
        image: kurento/kurento-media-server:6.9.0
        ports:
        - containerPort: 8888
          name: kurento
        volumeMounts:
        - name: kurento-webrtcendpoint-conf
          mountPath: "/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini"
          subPath: "WebRtcEndpoint.conf.ini"
      volumes:
      - name: kurento-webrtcendpoint-conf
        secret:
          secretName: "kurento-webrtcendpoint-conf"
