blob: 8a3e7c621d74b1c2ccbaa6abe72f38c870a0c2c8 (
about) (
plain)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: modbus-mapper
spec:
replicas: 1
selector:
matchLabels:
app: modbusmapper
template:
metadata:
labels:
app: modbusmapper
spec:
hostNetwork: true
containers:
- name: modbus-mapper-container
image: modbusmapper:v1.0
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
volumeMounts:
- name: config-volume
mountPath: /opt/kubeedge/
- mountPath: /dev/ttyS0
name: modbus-dev0
- mountPath: /dev/ttyS1
name: modbus-dev1
nodeSelector:
modbus: "true"
volumes:
- name: config-volume
configMap:
name: device-profile-config-test
- name: modbus-dev0
hostPath:
path: /dev/ttyS0
- name: modbus-dev1
hostPath:
path: /dev/ttyS1
restartPolicy: Always
|