
enabled: true

global:
  middlewareService:
    type: NodePort
  affinity: { }
  nodeAffinityPreset:
    type: hard
    key: uavcloud.env
    values:
      - demo

srs:
  name: helm-srs
  image:
    register: docker.io
    repository: docker.io/ossrs
    name: srs
    tag: v4.0.136
  replicas:
    origin: 1
    edge: 2
    # 一般情况下，不部署nginx
    nginx: 2
    # 一般情况下，不部署rtc
    rtc: 1
  config:
    # 指向 configMap中的 CANDIDATE，需要根据实际情况修改为集群的对外暴露域名或者IP地址
    domain: ig-dev.uavcmlc.com
    pvc: glusterfs-middleware-srs-pvc
    enableTLS: true
    # 一般情况下，不部署nginx
    enableNginxHLS: false
    # 一般情况下，不部署rtc
    enableRTC: false
    # 不知道该 hook有什么用
    enableHooks: false
    # 此参数被代替
    enableRandomPorts: true
  hooks:
    # 此部分是干什么的？ 29999一般是为GDR服务预留的
    on_publish: http://192.168.11.137:29999/video_stream/on_publish
    on_unpublish: http://192.168.11.137:29999/video_stream/on_unpublish
    on_play: http://192.168.11.137:29999/video_stream/on_play
  ports:
    cluster:
      rtmp: 31935
      api: 31985
      flv: 30080
      webrtc: 30090
      # 需要根据实际部署环境，映射的实际公网端口修改
      realPublicWebRTC: 11005
    rtc:
      rtmp: 41935
      api: 41985
      flv: 40080
      webrtc: 40090
    nginx:
      hls: 40088
  nginx:
    repository: nginx
    tag: 1.19.10

ingress:
  enabled: false

resources:
  limits:
    memory: 4Gi
    cpu: "2"
  requests:
    memory: 128Mi
    cpu: 50m
