clean: pca9685 deployment
This commit is contained in:
parent
e0955aac8f
commit
d3071a5abf
@ -195,29 +195,15 @@ spec:
|
|||||||
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
||||||
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
||||||
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
||||||
- "--steering-pin=GPIO6"
|
- "--update-pwm-frequency=25"
|
||||||
- "--throttle-pin=GPIO12"
|
|
||||||
- "--update-pwm-frequency=10"
|
|
||||||
- "--log=info"
|
- "--log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 1234
|
||||||
runAsGroup: 997 # Set 998/i2c group to access to i2c device
|
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /dev
|
|
||||||
name: dev
|
|
||||||
- mountPath: /dev/i2c-1
|
- mountPath: /dev/i2c-1
|
||||||
name: i2c
|
name: i2c
|
||||||
#- name: gpiomem
|
|
||||||
# mountPath: "/dev/gpiomem"
|
|
||||||
#- name: gpiochip0
|
|
||||||
# mountPath: "/dev/gpiochip0"
|
|
||||||
#- name: gpiochip1
|
|
||||||
# mountPath: "/dev/gpiochip1"
|
|
||||||
- name: sys
|
|
||||||
mountPath: "/sys"
|
|
||||||
#- name: vcio
|
|
||||||
# mountPath: "/dev/vcio"
|
|
||||||
env:
|
env:
|
||||||
- name: MQTT_BROKER
|
- name: MQTT_BROKER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -266,29 +252,7 @@ spec:
|
|||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
volumes:
|
volumes:
|
||||||
- name: dev
|
|
||||||
hostPath:
|
|
||||||
path: /dev
|
|
||||||
- name: i2c
|
- name: i2c
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/i2c-1
|
path: /dev/i2c-1
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
- name: gpiomem
|
|
||||||
hostPath:
|
|
||||||
path: /dev/gpiomem
|
|
||||||
type: CharDevice
|
|
||||||
- name: gpiochip0
|
|
||||||
hostPath:
|
|
||||||
path: /dev/gpiochip0
|
|
||||||
type: CharDevice
|
|
||||||
- name: gpiochip1
|
|
||||||
hostPath:
|
|
||||||
path: /dev/gpiochip1
|
|
||||||
type: CharDevice
|
|
||||||
- name: sys
|
|
||||||
hostPath:
|
|
||||||
path: /sys
|
|
||||||
- name: vcio
|
|
||||||
hostPath:
|
|
||||||
path: /dev/vcio
|
|
||||||
type: CharDevice
|
|
||||||
|
Loading…
Reference in New Issue
Block a user