Kubeedge brief

References

https://docs.kubeedge.io/en/latest/
https://github.com/kubeedge/kubeedge/tree/master/docs

Architecture

在这里插入图片描述
Edged: an agent that runs on edge nodes and manages containerized applications.
EdgeHub: a web socket client responsible for interacting with Cloud Service for edge computing (like Edge Controller as in the KubeEdge Architecture). This includes syncing cloud-side resource updates to the edge and reporting edge-side host and device status changes to the cloud.
CloudHub: A web socket server responsible for watching changes at the cloud side, caching and sending messages to EdgeHub.
EdgeController: an extended kubernetes controller which manages edge nodes and pods metadata so that the data can be targeted to a specific edge node.
EventBus: an MQTT client to interact with MQTT servers (mosquitto), offering publish and subscribe capabilities to other components.
DeviceTwin: responsible for storing device status and syncing device status to the cloud. It also provides query interfaces for applications.
MetaManager: the message processor between edged and edgehub. It is also responsible for storing/retrieving metadata to/from a lightweight database (SQLite).

Advantages

在这里插入图片描述

  • Remote edge node in LAN could connect to the server and be controlled.

IOT part architecture

iot part architecture of KubeEdge
设备控制管理主要分为三大模块:
Device controller, device twin 和mapper。
Device controller是KubeEdge云端组件,功能是设备管理。在这里,它使用Kubernetes CRD来描述设备定义和设备状态,并通过编辑CRD对设备进行配置,通过更新CRD让用户得到设备状态。
Device Twin模块的功能是存储来自Mapper的设备状态和数据值,并转发device controller和Mapper之间的消息。
Mapper是KubeEdge和设备之间的接口,它能够设置设备寄存器,获得寄存器的值,获取并上报设备状态。
用户使用设备系统时首先定义设备模型和设备实例的CRD,之后device controller会根据CRD生成一个configmap。Mapper启动时会挂载这个configmap,根据configmap配置和周期性上报需要的寄存器值。当用户更新CRD时,device controller会往下发送更新部分的配置, Mapper收到后处理相应变化。

Device controller

device controller of KubeEdge
Device controller 数据流程,里面包括的整条device链上所有的组件。当初始化时,device controller监听API server关于device/modle CRD变化,eventbus向Mqtt server订阅device数据和状态,Mapper向Mqtt server订阅配置变化。Device controller得到配置变化时往下通过cloudhub和edgehub传给device twin,device twin存储后发布信息,mapper收到后配置设备并返回更新后的值。Eventbus收到后转给device twin存储后向上返回给device controller,device controller更新crd。

Mapper

Mapper of KubeEdge
更多信息可以参考:
https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/mapper-design-v2.md
https://github.com/kubeedge/mappers-go

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值