From 182a3d447b2ba0447c6b19a27b36a5ceaa1ccc99 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Fri, 28 Jan 2022 18:36:54 +0100 Subject: [PATCH] =?UTF-8?q?feat(=C2=B5service):=20run=20oak-camera=20as=20?= =?UTF-8?q?non=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../microservices/files/robocar/car/deployments.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ansible/roles/microservices/files/robocar/car/deployments.yaml b/ansible/roles/microservices/files/robocar/car/deployments.yaml index 9eb79d5..29c2da8 100644 --- a/ansible/roles/microservices/files/robocar/car/deployments.yaml +++ b/ansible/roles/microservices/files/robocar/car/deployments.yaml @@ -108,12 +108,9 @@ spec: - "--image-width=$(CAMERA_WIDTH)" - "--image-height=$(CAMERA_HEIGHT)" securityContext: - #runAsUser: 1234 - #runAsGroup: 44 # Set 44/video group to access to video device + runAsUser: 1234 privileged: true volumeMounts: - #- name: bus-usb - # mountPath: /dev/bus/usb - name: sys mountPath: /sys - name: dev @@ -155,14 +152,8 @@ spec: value: "0" - name: TZ value: "Europe/Paris" - securityContext: - runAsNonRoot: false - runAsUser: 0 hostNetwork: true volumes: - - name: bus-usb - hostPath: - path: "/dev/bus/usb" - name: sys hostPath: path: /sys