# The deployment handles all matching templated pods
selector:
matchLabels:
node:drone
...
...
@@ -17,29 +14,34 @@ spec:
template:
metadata:
labels:
app:cluster
node:drone
app:cluster
spec:
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:
-name:drone
securityContext:
privileged:true
volumeMounts:
-mountPath:/dev/ttyACM0
name:ttyacm
-mountPath:/dev/dji_usb
name:ttydji
-mountPath:/dev/video0
name:devvideo0
-mountPath:/dev/video1
name:devvideo1
-name:ttyacm
mountPath:/dev/ttyACM0
-name:ttydji
mountPath:/dev/dji_usb
-name:image-storage
mountPath:/home/ssher/imageNFS
image:llh/drone:v0
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