chore(microservices): upgrade stack

This commit is contained in:
2022-01-28 18:05:36 +01:00
parent 89128f3c8c
commit ab50870e0f
9 changed files with 87 additions and 26 deletions

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: robocar-pca9685
data:
################
# STEERING PWM #
################
STEERING_LEFT_PWM: "1092"
STEERING_RIGHT_PWM: "1986"
STEERING_CENTER_PWM: "1583"

View File

@ -26,7 +26,7 @@ spec:
- "-video-device=0"
- "-video-width=$(CAMERA_WIDTH)"
- "-video-height=$(CAMERA_HEIGHT)"
- "-debug=false"
- "-log=info"
securityContext:
runAsUser: 1234
runAsGroup: 44 # Set 44/video group to access to video device
@ -103,18 +103,19 @@ spec:
spec:
containers:
- name: pca9685
image: cyrilix/robocar-pca9685:v0.3.0
image: docker.io/cyrilix/robocar-pca9685
args:
- "-mqtt-retain=false"
- "-throttle-channel=1"
- "-steering-channel=0"
- "-throttle-zero-pwm=378"
- "-throttle-min-pwm=250"
- "-throttle-max-pwm=500"
- "-steering-left-pwm=490"
- "-steering-right-pwm=265"
- "-update-pwm-frequency=10"
- "-debug=false"
- "--mqtt-retain=false"
- "--throttle-channel=1"
- "--steering-channel=0"
- "--throttle-zero-pwm=378"
- "--throttle-min-pwm=250"
- "--throttle-max-pwm=500"
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
- "--update-pwm-frequency=10"
- "--log=info"
securityContext:
runAsUser: 1234
runAsGroup: 998 # Set 998/i2c group to access to i2c device
@ -152,6 +153,21 @@ spec:
name: robocar
- name: MQTT_QOS
value: "0"
- name: STEERING_LEFT_PWM
valueFrom:
configMapKeyRef:
name: robocar-pca9685
key: STEERING_LEFT_PWM
- name: STEERING_RIGHT_PWM
valueFrom:
configMapKeyRef:
name: robocar-pca9685
key: STEERING_RIGHT_PWM
- name: STEERING_CENTER_PWM
valueFrom:
configMapKeyRef:
name: robocar-pca9685
key: STEERING_CENTER_PWM
- name: TZ
value: "Europe/Paris"
volumes:

View File

@ -7,10 +7,11 @@ namespace: robocar
resources:
- ../common
- deployments.yaml
- configmap.yaml
images:
- name: docker.io/cyrilix/robocar-camera
newTag: v0.2.0
newTag: v0.3.0
- name: docker.io/cyrilix/robocar-pca9685
newTag: v0.3.0
newTag: v0.4.0-1-gc42086a