forked from kubeedge/mappers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua-device.yaml
54 lines (54 loc) · 1.17 KB
/
opcua-device.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
44
45
46
47
48
49
50
51
52
53
54
apiVersion: devices.kubeedge.io/v1alpha2
kind: Device
metadata:
name: lamp
labels:
model: sample
spec:
deviceModelRef:
name: opcua-model
protocol:
opcua:
url: opc.tcp://192.168.56.103:4840
userName: testuser
password: /ca/pass
certificate: /ca/clientcert.pem
privateKey: /ca/clientkey.pem
securityMode: Sign
securityPolicy: Basic256Sha256
common:
customizedValues:
remoteCertificate: /ca/servercert.pem
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: ''
operator: In
values:
- test
propertyVisitors:
- propertyName: temperature
opcua:
nodeID: ns=2;i=2
- propertyName: switcher
opcua:
nodeID: ns=2;i=3
status:
twins:
- propertyName: switcher
reported:
metadata:
timestamp: '1550049403598'
type: boolean
value: "false"
desired:
metadata:
timestamp: '1550049403598'
type: boolean
value: "false"
- propertyName: temperature
reported:
metadata:
timestamp: '1550049403598'
type: integer
value: "0"