diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-07-23 00:10:08 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-07-23 00:10:08 +0200 |
commit | 8004e8a6eb01db695dc6c9f2d03fd4b47b6d22d4 (patch) | |
tree | a5cbffb1af312062901e6c9b3c14207f17970615 /roles/streaming/handbrake/templates | |
parent | ele-helene: prepare for handbrake docker container (diff) |
add role streaming/handbrake
Diffstat (limited to 'roles/streaming/handbrake/templates')
-rw-r--r-- | roles/streaming/handbrake/templates/pod-spec.yml.j2 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/roles/streaming/handbrake/templates/pod-spec.yml.j2 b/roles/streaming/handbrake/templates/pod-spec.yml.j2 new file mode 100644 index 00000000..5f321864 --- /dev/null +++ b/roles/streaming/handbrake/templates/pod-spec.yml.j2 @@ -0,0 +1,59 @@ +containers: +- name: handbrake + image: jlesage/handbrake:{{ handbrake_image_version }} + imagePullPolicy: Always + terminationGracePeriodSeconds: 120 + securityContext: + privileged: true + env: + - name: USER_ID + value: '990' + - name: GROUP_ID + value: '990' + - name: SUP_GROUP_IDS + value: '44' + - name: KEEP_APP_RUNNING + value: '1' + - name: TZ + value: '{{ handbrake_timezone }}' + + volumeMounts: +{% if handbrake_enable_hardware_encoding %} + - name: dri-device + mountPath: /dev/dri +{% endif %} + - name: config + mountPath: /config + - name: storage + mountPath: /storage + readOnly: yes + - name: watch + mountPath: /watch + - name: output + mountPath: /output + ports: + - containerPort: 5800 + hostPort: {{ handbrake_web_port }} + +volumes: +{% if handbrake_enable_hardware_encoding %} +- name: dri-device + hostPath: + path: /dev/dri +{% endif %} +- name: config + hostPath: + path: "{{ handbrake_base_path }}/{{ handbrake_inst_name }}/config" + type: Directory +- name: storage + hostPath: + path: "{{ handbrake_base_path }}/{{ handbrake_inst_name }}/storage" + type: Directory +- name: watch + hostPath: + path: "{{ handbrake_base_path }}/{{ handbrake_inst_name }}/watch" + type: Directory +- name: output + hostPath: + path: "{{ handbrake_base_path }}/{{ handbrake_inst_name }}/output" + type: Directory |