feat(µservice): run oak-camera as non root
This commit is contained in:
parent
e71eb6d66d
commit
182a3d447b
@ -108,12 +108,9 @@ spec:
|
|||||||
- "--image-width=$(CAMERA_WIDTH)"
|
- "--image-width=$(CAMERA_WIDTH)"
|
||||||
- "--image-height=$(CAMERA_HEIGHT)"
|
- "--image-height=$(CAMERA_HEIGHT)"
|
||||||
securityContext:
|
securityContext:
|
||||||
#runAsUser: 1234
|
runAsUser: 1234
|
||||||
#runAsGroup: 44 # Set 44/video group to access to video device
|
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
#- name: bus-usb
|
|
||||||
# mountPath: /dev/bus/usb
|
|
||||||
- name: sys
|
- name: sys
|
||||||
mountPath: /sys
|
mountPath: /sys
|
||||||
- name: dev
|
- name: dev
|
||||||
@ -155,14 +152,8 @@ spec:
|
|||||||
value: "0"
|
value: "0"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: false
|
|
||||||
runAsUser: 0
|
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: bus-usb
|
|
||||||
hostPath:
|
|
||||||
path: "/dev/bus/usb"
|
|
||||||
- name: sys
|
- name: sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys
|
path: /sys
|
||||||
|
Loading…
Reference in New Issue
Block a user