chore(microservices): upgrade stack
This commit is contained in:
parent
89128f3c8c
commit
ab50870e0f
13
ansible/roles/microservices/files/robocar/car/configmap.yaml
Normal file
13
ansible/roles/microservices/files/robocar/car/configmap.yaml
Normal 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"
|
||||||
|
|
@ -26,7 +26,7 @@ spec:
|
|||||||
- "-video-device=0"
|
- "-video-device=0"
|
||||||
- "-video-width=$(CAMERA_WIDTH)"
|
- "-video-width=$(CAMERA_WIDTH)"
|
||||||
- "-video-height=$(CAMERA_HEIGHT)"
|
- "-video-height=$(CAMERA_HEIGHT)"
|
||||||
- "-debug=false"
|
- "-log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 44 # Set 44/video group to access to video device
|
runAsGroup: 44 # Set 44/video group to access to video device
|
||||||
@ -103,18 +103,19 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pca9685
|
- name: pca9685
|
||||||
image: cyrilix/robocar-pca9685:v0.3.0
|
image: docker.io/cyrilix/robocar-pca9685
|
||||||
args:
|
args:
|
||||||
- "-mqtt-retain=false"
|
- "--mqtt-retain=false"
|
||||||
- "-throttle-channel=1"
|
- "--throttle-channel=1"
|
||||||
- "-steering-channel=0"
|
- "--steering-channel=0"
|
||||||
- "-throttle-zero-pwm=378"
|
- "--throttle-zero-pwm=378"
|
||||||
- "-throttle-min-pwm=250"
|
- "--throttle-min-pwm=250"
|
||||||
- "-throttle-max-pwm=500"
|
- "--throttle-max-pwm=500"
|
||||||
- "-steering-left-pwm=490"
|
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
||||||
- "-steering-right-pwm=265"
|
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
||||||
- "-update-pwm-frequency=10"
|
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
||||||
- "-debug=false"
|
- "--update-pwm-frequency=10"
|
||||||
|
- "--log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
||||||
@ -152,6 +153,21 @@ spec:
|
|||||||
name: robocar
|
name: robocar
|
||||||
- name: MQTT_QOS
|
- name: MQTT_QOS
|
||||||
value: "0"
|
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
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -7,10 +7,11 @@ namespace: robocar
|
|||||||
resources:
|
resources:
|
||||||
- ../common
|
- ../common
|
||||||
- deployments.yaml
|
- deployments.yaml
|
||||||
|
- configmap.yaml
|
||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-camera
|
- name: docker.io/cyrilix/robocar-camera
|
||||||
newTag: v0.2.0
|
newTag: v0.3.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-pca9685
|
- name: docker.io/cyrilix/robocar-pca9685
|
||||||
newTag: v0.3.0
|
newTag: v0.4.0-1-gc42086a
|
@ -41,6 +41,18 @@ data:
|
|||||||
############
|
############
|
||||||
THROTTLE_MIN: "0.3"
|
THROTTLE_MIN: "0.3"
|
||||||
THROTTLE_MAX: "0.4"
|
THROTTLE_MAX: "0.4"
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: robocar-steering-pwm
|
||||||
|
data:
|
||||||
|
################
|
||||||
|
# STEERING PWM #
|
||||||
|
################
|
||||||
|
STEERING_LEFT_PWM: "1002"
|
||||||
|
STEERING_RIGHT_PWM: "1985"
|
||||||
|
STEERING_CENTER_PWM: "1491"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -25,7 +25,10 @@ spec:
|
|||||||
- "-device=/dev/ttyAMA1"
|
- "-device=/dev/ttyAMA1"
|
||||||
- "-baud=115200"
|
- "-baud=115200"
|
||||||
- "-mqtt-retain=false"
|
- "-mqtt-retain=false"
|
||||||
- "-debug=true"
|
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
||||||
|
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
||||||
|
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
||||||
|
- "-log=info"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/dev/ttyAMA1"
|
- mountPath: "/dev/ttyAMA1"
|
||||||
name: serial
|
name: serial
|
||||||
@ -73,6 +76,21 @@ spec:
|
|||||||
name: robocar
|
name: robocar
|
||||||
- name: MQTT_QOS
|
- name: MQTT_QOS
|
||||||
value: "0"
|
value: "0"
|
||||||
|
- name: STEERING_LEFT_PWM
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: robocar-steering-pwm
|
||||||
|
key: STEERING_LEFT_PWM
|
||||||
|
- name: STEERING_RIGHT_PWM
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: robocar-steering-pwm
|
||||||
|
key: STEERING_RIGHT_PWM
|
||||||
|
- name: STEERING_CENTER_PWM
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: robocar-steering-pwm
|
||||||
|
key: STEERING_CENTER_PWM
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
volumes:
|
volumes:
|
||||||
@ -294,7 +312,7 @@ spec:
|
|||||||
image: docker.io/cyrilix/robocar-steering
|
image: docker.io/cyrilix/robocar-steering
|
||||||
args:
|
args:
|
||||||
- "-mqtt-retain=false"
|
- "-mqtt-retain=false"
|
||||||
- "-debug=false"
|
- "-log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 1234
|
runAsGroup: 1234
|
||||||
|
@ -10,25 +10,25 @@ resources:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-arduino
|
- name: docker.io/cyrilix/robocar-arduino
|
||||||
newTag: v0.4.0
|
newTag: v0.5.0-2-g9b5e9c2
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-led
|
- name: docker.io/cyrilix/robocar-led
|
||||||
newTag: v0.4.0
|
newTag: v0.5.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-steering-tflite-edgetpu
|
- name: docker.io/cyrilix/robocar-steering-tflite-edgetpu
|
||||||
newTag: v0.3.0
|
newTag: v0.4.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-throttle
|
- name: docker.io/cyrilix/robocar-throttle
|
||||||
newTag: v0.3.0
|
newTag: v0.4.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-record
|
- name: docker.io/cyrilix/robocar-record
|
||||||
newTag: v0.4.0
|
newTag: v0.5.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-recorder-store
|
- name: docker.io/cyrilix/robocar-recorder-store
|
||||||
newTag: v0.1.0
|
newTag: v0.2.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-steering
|
- name: docker.io/cyrilix/robocar-steering
|
||||||
newTag: v0.4.0
|
newTag: v0.5.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-road
|
- name: docker.io/cyrilix/robocar-road
|
||||||
newTag: v0.1.0-4-g70f46bd
|
newTag: v0.1.0-5-gdc6e465
|
||||||
|
@ -11,3 +11,4 @@ spec:
|
|||||||
- port: 1883
|
- port: 1883
|
||||||
name: mqtt
|
name: mqtt
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
ipFamilyPolicy: SingleStack
|
||||||
|
@ -28,7 +28,7 @@ spec:
|
|||||||
- "-car-color=100,0,255"
|
- "-car-color=100,0,255"
|
||||||
- "-camera-img-h=$(CAMERA_HEIGHT)"
|
- "-camera-img-h=$(CAMERA_HEIGHT)"
|
||||||
- "-camera-img-w=$(CAMERA_WIDTH)"
|
- "-camera-img-w=$(CAMERA_WIDTH)"
|
||||||
- "-debug=false"
|
- "-log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 1234
|
runAsGroup: 1234
|
||||||
|
@ -11,4 +11,4 @@ resources:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-simulator
|
- name: docker.io/cyrilix/robocar-simulator
|
||||||
newTag: v0.3.0
|
newTag: v0.4.0
|
||||||
|
Loading…
Reference in New Issue
Block a user