From 336398e61990c3695ab0463408d95665f32db445 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 16 Mar 2024 19:20:34 +0100 Subject: add companion role --- .../streaming/companion/templates/pod-spec.yml.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/streaming/companion/templates/pod-spec.yml.j2 (limited to 'roles/streaming/companion/templates/pod-spec.yml.j2') diff --git a/roles/streaming/companion/templates/pod-spec.yml.j2 b/roles/streaming/companion/templates/pod-spec.yml.j2 new file mode 100644 index 00000000..f01637fe --- /dev/null +++ b/roles/streaming/companion/templates/pod-spec.yml.j2 @@ -0,0 +1,22 @@ +hostNetwork: true +containers: +- name: companion + image: ghcr.io/bitfocus/companion/companion:v{{ companion_version }} + imagePullPolicy: Always + securityContext: + privileged: true + supplementalGroups: + - 46 # plugdev + volumeMounts: + - name: dev-usb + mountPath: /dev/bus/usb + - name: data + mountPath: /companion +volumes: +- name: dev-usb + hostPath: + path: /dev/bus/usb +- name: data + hostPath: + type: Directory + path: "{{ companion_basepath }}" -- cgit v1.2.3