Skip to content

Commit

Permalink
Merge pull request #87 from RyanZhaoXB/dmi-dev-config
Browse files Browse the repository at this point in the history
remove binary of modbus-dmi
  • Loading branch information
kubeedge-bot authored Jan 18, 2023
2 parents 1a172d8 + f351352 commit b03f230
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file removed mappers/modbus-dmi/bin/modbus-dmi
Binary file not shown.
7 changes: 3 additions & 4 deletions mappers/modbus-dmi/config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
grpc_server:
socket_path: /tmp/a.sock
socket_path: /etc/kubeedge/modbus.sock
common:
name: mapper-test
version: v1.0.0
name: modbus-dmi-mapper
version: v1.13.0
api_version: v1.0.0
protocol: modbus
address: 127.0.0.1
edgecore_sock: /etc/kubeedge/dmi.sock
dev_init:
mode: register #register/configmap
configmap: /opt/kubeedge/deviceProfile.json
9 changes: 7 additions & 2 deletions mappers/modbus-dmi/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: modbus-mapper
name: modbus-dmi-mapper
spec:
replicas: 1
selector:
Expand All @@ -15,7 +15,7 @@ spec:
hostNetwork: true
containers:
- name: modbus-mapper-container
image: modbusmapper:v1.0
image: modbus-dmi-mapper:v1.0-linux-amd64
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
Expand All @@ -26,9 +26,14 @@ spec:
name: modbus-dev0
- mountPath: /dev/ttyS1
name: modbus-dev1
- name: sock-path
mountPath: /etc/kubeedge
nodeSelector:
modbus: "true"
volumes:
- name: sock-path
hostPath:
path: /etc/kubeedge
- name: config-volume
configMap:
name: device-profile-config-test
Expand Down

0 comments on commit b03f230

Please sign in to comment.