clean: remove docker config stack
This commit is contained in:
parent
74e758dd0c
commit
4daf1074e6
@ -1,124 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: camera
|
||||
spec:
|
||||
containers:
|
||||
- name: camera
|
||||
image: docker.io/cyrilix/robocar-camera
|
||||
args:
|
||||
- "-mqtt-pub-frequency=20"
|
||||
- "-video-device=0"
|
||||
- "-video-width=$(CAMERA_WIDTH)"
|
||||
- "-video-height=$(CAMERA_HEIGHT)"
|
||||
volumeMounts:
|
||||
- name: camera
|
||||
mountPath: "/dev/video0"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 44 # Set 44/video group to access to video device
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-camera
|
||||
- name: MQTT_TOPIC
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_CAMERA
|
||||
name: robocar
|
||||
- name: CAMERA_HEIGHT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: CAMERA_HEIGHT
|
||||
name: robocar
|
||||
- name: CAMERA_WIDTH
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: CAMERA_WIDTH
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
#network_mode: host
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: pca9685
|
||||
spec:
|
||||
containers:
|
||||
- name: pca9685
|
||||
image: docker.io/cyrilix/robocar-pca9685:v0.2.0
|
||||
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"
|
||||
volumeMounts:
|
||||
- mountPath: /dev/i2c-1
|
||||
name: i2c
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
||||
#network_mode: host
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-pca9685
|
||||
- name: MQTT_TOPIC_THROTTLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_THROTTLE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
volumes:
|
||||
- name: i2c
|
||||
hostPath:
|
||||
path: /dev/i2c-1
|
||||
type: CharDevice
|
||||
|
@ -1,198 +0,0 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
|
||||
camera:
|
||||
image: cyrilix/robocar-camera
|
||||
command:
|
||||
- "-mqtt-pub-frequency=20"
|
||||
- "-video-device=0"
|
||||
- "-video-width=160"
|
||||
- "-video-height=128"
|
||||
devices:
|
||||
- "/dev/video0:/dev/video0:rw"
|
||||
user: "1234:44" # Set 44/video group to access to video device
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-camera
|
||||
MQTT_TOPIC: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
arduino:
|
||||
image: cyrilix/robocar-arduino
|
||||
command:
|
||||
- "-device=/dev/ttyAMA1"
|
||||
- "-baud=115200"
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
devices:
|
||||
- "/dev/ttyAMA1:/dev/ttyAMA1:rw"
|
||||
user: "1234:20" # Set 20/dialout group to access to serial device
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-arduino
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_RC_THROTTLE}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_TOPIC_SWITCH_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
led:
|
||||
image: cyrilix/robocar-led
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
devices:
|
||||
- "/dev/gpiomem:/dev/gpiomem:rw"
|
||||
user: "1234:997" # Set 997/gpio group to access to serial device
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-led
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_TOPIC_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
pca9685:
|
||||
image: cyrilix/robocar-pca9685
|
||||
command:
|
||||
- "-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"
|
||||
devices:
|
||||
- "/dev/i2c-1:/dev/i2c-1:rw"
|
||||
user: "1234:998" # Set 998/i2c group to access to i2c device
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-pca9685
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_THROTTLE}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_STEERING}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
tflite-steering:
|
||||
image: cyrilix/robocar-tflite-steering
|
||||
command: "--tf-model-path=/model/model.tflite"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
volumes:
|
||||
- /home/pi/models/steering:/model
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER_HOST}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-tflite-steering
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_TF_STEERING}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
steering:
|
||||
image: cyrilix/robocar-steering
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-steering
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_STEERING}"
|
||||
MQTT_TOPIC_TF_STEERING: "${MQTT_TOPIC_TF_STEERING}"
|
||||
MQTT_TOPIC_RC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
throttle:
|
||||
image: cyrilix/robocar-throttle
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-throttle
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_THROTTLE}"
|
||||
MQTT_TOPIC_RC_THROTTLE: "${MQTT_TOPIC_RC_THROTTLE}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
THROTTLE_MIN: "0.3"
|
||||
THROTTLE_MAX: "0.4"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
road:
|
||||
image: cyrilix/robocar-road
|
||||
command:
|
||||
- "-horizon=20"
|
||||
- "-mqtt-retain=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-road
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_ROAD: car/satanas/part/road
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
# objects:
|
||||
# image: cyrilix/robocar-objects-detection
|
||||
# command:
|
||||
# - "-mqtt-retain=false"
|
||||
# - "-tf-model-path=/model/frozen_inference_graph.pb"
|
||||
# - "-tf-model-config-path=/model/ssd_mobilenet_v2_coco_2018_03_29.pbtxt"
|
||||
# user: "1234:1234"
|
||||
# volumes:
|
||||
# - /home/pi/models/objects-detection:/model
|
||||
# network_mode: host
|
||||
# environment:
|
||||
# MQTT_BROKER: "${MQTT_BROKER}"
|
||||
# MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
# MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
# MQTT_CLIENT_ID: rc-objects-detection
|
||||
# MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
# MQTT_TOPIC_OBJECTS: car/satanas/part/objects
|
||||
# MQTT_QOS: "0"
|
||||
# TZ: "Europe/Paris"
|
||||
|
||||
record:
|
||||
image: cyrilix/robocar-record
|
||||
command:
|
||||
- "-mqtt-retain=true"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-record
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_SWITCH_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_TOPIC_RECORDS: "${MQTT_TOPIC_RECORDS}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
@ -1,350 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: arduino
|
||||
spec:
|
||||
containers:
|
||||
- name: arduino
|
||||
image: docker.io/cyrilix/robocar-arduino:v0.2.0
|
||||
args:
|
||||
- "-device=/dev/ttyAMA1"
|
||||
- "-baud=115200"
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
volumeMounts:
|
||||
- mountPath: "/dev/ttyAMA1"
|
||||
name: serial
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 20 # Set 20/dialout group to access to serial device
|
||||
# network_mode: host
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-arduino
|
||||
- name: MQTT_TOPIC_THROTTLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_THROTTLE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_DRIVE_MODE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_DRIVE_MODE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_SWITCH_RECORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_SWITCH_RECORD
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
volumes:
|
||||
- name: serial
|
||||
hostPath:
|
||||
path: /dev/ttyAMA1
|
||||
type: CharDevice
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: led
|
||||
spec:
|
||||
containers:
|
||||
- name: led
|
||||
image: docker.io/cyrilix/robocar-led:v0.2.0
|
||||
args:
|
||||
- "-mqtt-retain=false"
|
||||
volumeMounts:
|
||||
- name: gpiomem
|
||||
mountPath: "/dev/gpiomem"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 997 # Set 997/gpio group to access to serial device
|
||||
|
||||
#network_mode: host
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-led
|
||||
- name: MQTT_TOPIC_DRIVE_MODE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_DRIVE_MODE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_RECORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_SWITCH_RECORD
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
volumes:
|
||||
- name: gpiomem
|
||||
hostPath:
|
||||
path: /dev/gpiomem
|
||||
type: CharDevice
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: tflite-steering
|
||||
spec:
|
||||
containers:
|
||||
- name: tflite-steering
|
||||
image: docker.io/cyrilix/robocar-tflite-steering:v0.1.0
|
||||
args:
|
||||
- "--tf-model-path=/model/model.tflite"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 1234
|
||||
#network_mode: host
|
||||
volumeMounts:
|
||||
- name: models
|
||||
mountPath: /model
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-tflite-steering
|
||||
- name: MQTT_TOPIC_CAMERA
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_CAMERA
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_TF_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
volumes:
|
||||
- name: models
|
||||
hostPath:
|
||||
path: /home/pi/models/steering
|
||||
type: DirectoryOrCreate
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: throttle
|
||||
spec:
|
||||
containers:
|
||||
- name: throttle
|
||||
image: docker.io/cyrilix/robocar-throttle:v0.2.0
|
||||
args:
|
||||
- "-mqtt-retain=false"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 1234
|
||||
#network_mode: host
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-throttle
|
||||
- name: MQTT_TOPIC_THROTTLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_THROTTLE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_RC_THROTTLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_THROTTLE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_DRIVE_MODE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_DRIVE_MODE
|
||||
name: robocar
|
||||
- name: THROTTLE_MIN
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: THROTTLE_MIN
|
||||
name: robocar
|
||||
- name: THROTTLE_MAX
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: THROTTLE_MAX
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
|
||||
#---
|
||||
#apiVersion: v1
|
||||
#kind: Pod
|
||||
#metadata:
|
||||
# name: road
|
||||
#spec:
|
||||
# containers:
|
||||
# - name: road
|
||||
# image: docker.io/cyrilix/robocar-road:0.0.1
|
||||
# args:
|
||||
# - "-horizon=20"
|
||||
# - "-mqtt-retain=false"
|
||||
# securityContext:
|
||||
# runAsUser: 1234
|
||||
# runAsGroup: 1234
|
||||
# #network_mode: host
|
||||
# env:
|
||||
# - name: MQTT_BROKER
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: MQTT_BROKER
|
||||
# name: robocar
|
||||
# - name: MQTT_USERNAME
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: MQTT_USERNAME
|
||||
# name: robocar
|
||||
# - name: MQTT_PASSWORD
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: MQTT_PASSWORD
|
||||
# name: robocar
|
||||
# - name: MQTT_CLIENT_ID
|
||||
# value: rc-road
|
||||
# - name: MQTT_TOPIC_CAMERA
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: MQTT_TOPIC_CAMERA
|
||||
# name: robocar
|
||||
# - name: MQTT_TOPIC_ROAD
|
||||
# valueFrom:
|
||||
# configMapKeyRef:
|
||||
# key: MQTT_TOPIC_ROAD
|
||||
# name: robocar
|
||||
# - name: MQTT_QOS
|
||||
# value: "0"
|
||||
# - name: TZ
|
||||
# value: "Europe/Paris"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: record
|
||||
spec:
|
||||
containers:
|
||||
- name: record
|
||||
image: docker.io/cyrilix/robocar-record:v0.2.0
|
||||
args:
|
||||
- "-mqtt-retain=true"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 1234
|
||||
#network_mode: host
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-record
|
||||
- name: MQTT_TOPIC_CAMERA
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_CAMERA
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_SWITCH_RECORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RC_SWITCH_RECORD
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_RECORDS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_RECORDS
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
@ -1,33 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: robocar
|
||||
|
||||
resources:
|
||||
- common/configmap.yaml
|
||||
- common/
|
||||
|
||||
images:
|
||||
- name: docker.io/cyrilix/robocar-arduino
|
||||
newTag: v0.3.0
|
||||
|
||||
- name: docker.io/cyrilix/robocar-led
|
||||
newTag: v0.3.0
|
||||
|
||||
- name: docker.io/cyrilix/robocar-steering-tflite-edgetpu
|
||||
newTag: v0.1.0
|
||||
|
||||
- name: docker.io/cyrilix/robocar-throttle
|
||||
newTag: v0.3.0
|
||||
|
||||
- name: docker.io/cyrilix/robocar-record
|
||||
newTag: v0.3.0
|
||||
|
||||
configurations:
|
||||
- common/configmap.yaml
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,192 +0,0 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
|
||||
arduino:
|
||||
image: docker.io/cyrilix/robocar-arduino:v0.3.0
|
||||
command:
|
||||
- "-device=/dev/ttyAMA1"
|
||||
- "-baud=115200"
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
devices:
|
||||
- "/dev/ttyAMA1:/dev/ttyAMA1:rw"
|
||||
user: "1234:20" # Set 20/dialout group to access to serial device
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-arduino
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_RC_THROTTLE}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_TOPIC_SWITCH_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
led:
|
||||
image: docker.io/cyrilix/robocar-led:v0.3.0
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
devices:
|
||||
- "/dev/gpiomem:/dev/gpiomem:rw"
|
||||
- "/dev/gpiochip0:/dev/gpiochip0:rw"
|
||||
- "/dev/gpiochip1:/dev/gpiochip1:rw"
|
||||
user: "1234:997" # Set 997/gpio group to access to serial device
|
||||
network_mode: host
|
||||
privileged: true
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-led
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_TOPIC_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
|
||||
tflite-steering:
|
||||
image: docker.io/cyrilix/robocar-steering-tflite-edgetpu:v0.1.0
|
||||
command:
|
||||
- "--model=/model/model_edgetpu.tflite"
|
||||
- "--edge-verbosity=0"
|
||||
- "-debug=false"
|
||||
user: "0:0"
|
||||
network_mode: host
|
||||
privileged: true
|
||||
volumes:
|
||||
- /dev/bus/usb:/dev/bus/usb
|
||||
- /sys:/sys
|
||||
- /home/pi/models/steering:/model
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-tflite-steering
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_TF_STEERING}"
|
||||
MQTT_QOS: "0"
|
||||
LD_LIBRARY_PATH: "/usr/local/lib/:/usr/lib"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
steering:
|
||||
image: docker.io/cyrilix/robocar-steering:v0.3.0
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-steering
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_STEERING}"
|
||||
MQTT_TOPIC_TF_STEERING: "${MQTT_TOPIC_TF_STEERING}"
|
||||
MQTT_TOPIC_RC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
throttle:
|
||||
image: docker.io/cyrilix/robocar-throttle:v0.3.0
|
||||
command:
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-throttle
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_THROTTLE}"
|
||||
MQTT_TOPIC_RC_THROTTLE: "${MQTT_TOPIC_RC_THROTTLE}"
|
||||
MQTT_TOPIC_DRIVE_MODE: "${MQTT_TOPIC_RC_DRIVE_MODE}"
|
||||
THROTTLE_MIN: "${THROTTLE_MIN}"
|
||||
THROTTLE_MAX: "${THROTTLE_MAX}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
road:
|
||||
image: docker.io/cyrilix/robocar-road:v0.1.0
|
||||
command:
|
||||
- "-horizon=20"
|
||||
- "-mqtt-retain=false"
|
||||
- "-debug=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-road
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_ROAD: car/satanas/part/road
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
# objects:
|
||||
# image: cyrilix/robocar-objects-detection
|
||||
# command:
|
||||
# - "-mqtt-retain=false"
|
||||
# - "-tf-model-path=/model/frozen_inference_graph.pb"
|
||||
# - "-tf-model-config-path=/model/ssd_mobilenet_v2_coco_2018_03_29.pbtxt"
|
||||
# user: "1234:1234"
|
||||
# volumes:
|
||||
# - /home/pi/models/objects-detection:/model
|
||||
# network_mode: host
|
||||
# environment:
|
||||
# MQTT_BROKER: "${MQTT_BROKER}"
|
||||
# MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
# MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
# MQTT_CLIENT_ID: rc-objects-detection
|
||||
# MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
# MQTT_TOPIC_OBJECTS: car/satanas/part/objects
|
||||
# MQTT_QOS: "0"
|
||||
# TZ: "Europe/Paris"
|
||||
|
||||
record:
|
||||
image: docker.io/cyrilix/robocar-record:v0.3.0
|
||||
command:
|
||||
- "-mqtt-retain=true"
|
||||
- "-debug=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-record
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_RC_STEERING}"
|
||||
MQTT_TOPIC_SWITCH_RECORD: "${MQTT_TOPIC_RC_SWITCH_RECORD}"
|
||||
MQTT_TOPIC_RECORDS: "${MQTT_TOPIC_RECORDS}"
|
||||
MQTT_QOS: "0"
|
||||
TZ: "Europe/Paris"
|
||||
|
||||
simulator:
|
||||
image: docker.io/cyrilix/robocar-simulator:v0.3.0
|
||||
command:
|
||||
- "-simulator-address=${SIMULATOR_ADDRESS}"
|
||||
- "-car-style=donkey"
|
||||
- "-car-name=Satanas"
|
||||
- "-car-color=100,0,255"
|
||||
- "-camera-img-h=${CAMERA_HEIGHT}"
|
||||
- "-camera-img-w=${CAMERA_WIDTH}"
|
||||
- "-debug=false"
|
||||
user: "1234:1234"
|
||||
network_mode: host
|
||||
environment:
|
||||
MQTT_BROKER: "${MQTT_BROKER}"
|
||||
MQTT_USERNAME: "${MQTT_USERNAME}"
|
||||
MQTT_PASSWORD: "${MQTT_PASSWORD}"
|
||||
MQTT_CLIENT_ID: rc-simulator
|
||||
MQTT_TOPIC_CAMERA: "${MQTT_TOPIC_CAMERA}"
|
||||
MQTT_TOPIC_STEERING: "${MQTT_TOPIC_SIMULATOR_STEERING}"
|
||||
MQTT_TOPIC_THROTTLE: "${MQTT_TOPIC_SIMULATOR_THROTTLE}"
|
||||
MQTT_TOPIC_STEERING_CTRL: "${MQTT_TOPIC_STEERING}"
|
||||
MQTT_TOPIC_THROTTLE_CTRL: "${MQTT_TOPIC_THROTTLE}"
|
||||
TZ: "Europe/Paris"
|
@ -1,77 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: simulator
|
||||
spec:
|
||||
containers:
|
||||
- name: simulator
|
||||
image: docker.io/cyrilix/robocar-simulator
|
||||
args:
|
||||
- "-simulator-address=${SIMULATOR_ADDRESS}"
|
||||
- "-debug=false"
|
||||
- "-car-style=donkey"
|
||||
- "-car-name=Satanas"
|
||||
- "-car-color=100,0,255"
|
||||
- "-camera-img-h=$(CAMERA_HEIGHT)"
|
||||
- "-camera-img-w=$(CAMERA_WIDTH)"
|
||||
securityContext:
|
||||
runAsUser: 1234
|
||||
runAsGroup: 1234
|
||||
env:
|
||||
- name: MQTT_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_BROKER
|
||||
name: robocar
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_USERNAME
|
||||
name: robocar
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_PASSWORD
|
||||
name: robocar
|
||||
- name: MQTT_CLIENT_ID
|
||||
value: rc-simulator
|
||||
- name: MQTT_TOPIC_CAMERA
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_CAMERA
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_SIMULATOR_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_THROTTLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_SIMULATOR_THROTTLE
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_STEERING_CTRL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_STEERING
|
||||
name: robocar
|
||||
- name: MQTT_TOPIC_THROTTLE_CTRL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: MQTT_TOPIC_THROTTLE
|
||||
name: robocar
|
||||
- name: CAMERA_HEIGHT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: CAMERA_HEIGHT
|
||||
name: robocar
|
||||
- name: CAMERA_WIDTH
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: CAMERA_WIDTH
|
||||
name: robocar
|
||||
- name: MQTT_QOS
|
||||
value: "0"
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
@ -10,7 +10,6 @@
|
||||
src: "{{ item }}"
|
||||
dest: /home/pi/
|
||||
with_items:
|
||||
- docker-compose.yaml
|
||||
- simulator-compose.yaml
|
||||
- car.yaml
|
||||
- robocar.yaml
|
||||
|
@ -1,25 +0,0 @@
|
||||
# Broker configuration
|
||||
MQTT_BROKER_HOST=localhost
|
||||
MQTT_BROKER=tcp://localhost:1883
|
||||
MQTT_USERNAME={{ rabbitmq_user }}
|
||||
MQTT_PASSWORD={{ rabbitmq_password }}
|
||||
|
||||
# Camera
|
||||
MQTT_TOPIC_CAMERA=car/satanas/part/camera
|
||||
|
||||
|
||||
# Radio command
|
||||
MQTT_TOPIC_RC_THROTTLE=car/satanas/part/rc/throttle
|
||||
MQTT_TOPIC_RC_STEERING=car/satanas/part/rc/steering
|
||||
MQTT_TOPIC_RC_SWITCH_RECORD=car/satanas/part/rc/switch_record
|
||||
MQTT_TOPIC_RC_DRIVE_MODE=car/satanas/part/rc/drive_mode
|
||||
|
||||
|
||||
MQTT_TOPIC_TF_STEERING=car/satanas/part/tflite/steering
|
||||
|
||||
# Values to apply
|
||||
MQTT_TOPIC_THROTTLE=car/satanas/part/throttle
|
||||
MQTT_TOPIC_STEERING=car/satanas/part/steering
|
||||
|
||||
# Records topic
|
||||
MQTT_TOPIC_RECORDS=car/satanas/part/records
|
Loading…
Reference in New Issue
Block a user