-
Notifications
You must be signed in to change notification settings - Fork 30
/
ros1-daemonset.yaml
43 lines (43 loc) · 1.35 KB
/
ros1-daemonset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ros1-deamonset
spec:
selector:
matchLabels:
app: ros1
template:
metadata:
labels:
app: ros1
spec:
containers:
- name: ros1-master
tty: true
image: tomoyafujita/ros:noetic
command: ["/bin/bash", "-c"]
args: ["source /opt/ros/$ROS_DISTRO/setup.bash && roscore"]
imagePullPolicy: IfNotPresent
- name: ros1-talker
tty: true
image: tomoyafujita/ros:noetic
command: ["/bin/bash", "-c"]
args: ["source /opt/ros/$ROS_DISTRO/setup.bash && until rostopic list; do sleep 1; done && rostopic pub -r 1 chatter std_msgs/String \"Hello, world\""]
imagePullPolicy: IfNotPresent
- name: ros1-listener
tty: true
image: tomoyafujita/ros:noetic
command: ["/bin/bash", "-c"]
args: ["source /opt/ros/$ROS_DISTRO/setup.bash && until rostopic list; do sleep 1; done && rostopic echo chatter"]
imagePullPolicy: IfNotPresent
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
#- key: node.kubernetes.io/disk-pressure
# operator: Exists
# effect: NoSchedule
restartPolicy: Always