# The deployment handles all matching templated pods
selector:
selector:
matchLabels:
matchLabels:
node:drone
node:drone
...
@@ -17,29 +14,34 @@ spec:
...
@@ -17,29 +14,34 @@ spec:
template:
template:
metadata:
metadata:
labels:
labels:
app:cluster
node:drone
node:drone
app:cluster
spec:
spec:
hostname:service-drone
hostname:service-drone
volumes:
-name:image-storage
persistentVolumeClaim:
claimName:image-volume-claim
-name:ttyacm
hostPath:
path:/dev/ttyACM0
-name:ttydji
hostPath:
path:/dev/dji_usb
containers:
containers:
-name:drone
-name:drone
securityContext:
securityContext:
privileged:true
privileged:true
volumeMounts:
volumeMounts:
-mountPath:/dev/ttyACM0
-name:ttyacm
name:ttyacm
mountPath:/dev/ttyACM0
-mountPath:/dev/dji_usb
-name:ttydji
name:ttydji
mountPath:/dev/dji_usb
-mountPath:/dev/video0
-name:image-storage
name:devvideo0
mountPath:/home/ssher/imageNFS
-mountPath:/dev/video1
name:devvideo1
image:llh/drone:v0
image:llh/drone:v0
command:["/bin/bash"]# You need to run some task inside a
command:["/bin/bash"]# You need to run some task inside a
args:["-c","source/opt/ros_ws/devel/setup.bash&&sudoservicesshrestart&&/usr/local/bin/ros_entrypoint.sh&&whiletrue;dosleep10;done;"]# Our simple program just sleeps inside
args:["-c","source/opt/ros_ws/devel/setup.bash&&sudoservicesshrestart&&/usr/local/bin/ros_entrypoint.sh&&whiletrue;dosleep10;done;"]# Our simple program just sleeps inside