summaryrefslogtreecommitdiff
path: root/roles/streaming/recorder/templates/pod-spec.yml.j2
blob: 21c57f457c43160af58916e158b0a8b1838ab276 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
containers:
- name: record
  image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ recorder_ffmpeg_image_version }}
  imagePullPolicy: Always
  command:
  - /usr/local/bin/generic-record.py
  args:
{% for param in recorder_input %}
  - '{{ param }}'
{% endfor %}
  env:
  - name: CONFIG_FILENAME
    value: /srv/config.yml
  - name: QUALITY_LEVELS
    value: {{ recorder_quality_level }}
  - name: AUDIO_TRACKS
    value: {{ recorder_audio_tracks | join(',') }}
{% if recorder_video_filter_common is defined %}
  - name: VIDEO_FILTER_COMMON
    value: "{{ recorder_video_filter_common }}"
{% endif %}
  securityContext:
    privileged: true
  volumeMounts:
  - name: home
    mountPath: /srv
  - name: decklink-device
    mountPath: /dev/blackmagic
  - name: decklink-libs
    subPath: libDeckLinkAPI.so
    mountPath: /usr/lib/libDeckLinkAPI.so
    readOnly: true
  - name: decklink-libs
    subPath: libDeckLinkPreviewAPI.so
    mountPath: /usr/lib/libDeckLinkPreviewAPI.so
    readOnly: true
  - name: decklink-libs
    subPath: blackmagic
    mountPath: /usr/lib/blackmagic
    readOnly: true
  - name: decklink-etc
    mountPath: /etc/blackmagic
    readOnly: true

volumes:
- name: home
  hostPath:
    path: "{{ recorder_base_path }}/{{ recorder_inst_name }}"
- name: decklink-device
  hostPath:
    path: /dev/blackmagic
- name: decklink-libs
  hostPath:
    type: Directory
    path: /usr/lib/
- name: decklink-etc
  hostPath:
    path: /etc/blackmagic