summaryrefslogtreecommitdiff
path: root/roles/streaming/companion/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-03-16 19:20:34 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-03-16 19:20:34 +0100
commit336398e61990c3695ab0463408d95665f32db445 (patch)
tree2eef0adfcfac59615b61b61ed27634fd94a7f08e /roles/streaming/companion/templates/pod-spec.yml.j2
parentraspios: rsync is needed for rpi-firmware (diff)
add companion role
Diffstat (limited to 'roles/streaming/companion/templates/pod-spec.yml.j2')
-rw-r--r--roles/streaming/companion/templates/pod-spec.yml.j222
1 files changed, 22 insertions, 0 deletions
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 }}"