-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-edge-devices.yaml
65 lines (65 loc) · 2.04 KB
/
sample-edge-devices.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
55
56
57
58
59
60
61
62
63
64
65
---
# An example edge device accessing via gRPC
apiVersion: aranya.arhat.dev/v1alpha1
kind: EdgeDevice
metadata:
name: example-edge-device-grpc
spec:
connectivity:
method: grpc
timers:
# force close unary session in server after
unarySessionTimeout: 10s
# force check device node status, reject if operation failed
forceNodeStatusSyncInterval: 5s
# force check device pod status, reject if operation failed
forcePodStatusSyncInterval: 5s
grpcConfig:
# here, with empty ref, aranya will setup an insecure grpc server
tlsSecretRef: {}
---
# An example edge device accessing via mqtt
apiVersion: aranya.arhat.dev/v1alpha1
kind: EdgeDevice
metadata:
name: example-edge-device-mqtt
spec:
connectivity:
method: mqtt
# you can specify timers here to override aranya's config
timers:
# force close session in server after
unarySessionTimeout: 1m
# force check device node status, reject if operation failed
forceNodeStatusSyncInterval: 10m
# force check device pod status, reject if operation failed
forcePodStatusSyncInterval: 10m
mqttConfig:
# mqtt message namespace for aranya communication
messageNamespace: /aranya.arhat.dev
# tell aranya how to connect mqtt broker
# # set secret ref to use tls when connecting to broker
tlsSecretRef:
# kubernetes secret name
name: my-mqtt-client-secret
# mqtt broker address
server: mqtt-broker:1883
# mqtt version, currently only 3.1.1 supported
version: "3.1.1"
# mqtt transport protocol, one of [tcp, websocket]
transport: tcp
# MQTT CONNECT packet
connectPacket:
cleanSession: true
will: true
willQos: 2
willRetain: false
willTopic: /will/go-away
willMessage: "I'm leaving now."
username: "foo"
password:
# kubernetes secret name for password
name: secret-name-for-mqtt-password
clientID: foo
# time in seconds
keepalive: 30