What is KubeEdge? Kubernetes at the edge, with offline autonomy and device management
Learn how KubeEdge takes Kubernetes to the edge: CloudCore and EdgeCore, autonomy when the network drops, device management with the DeviceModel and Device CRDs, MQTT, installation with keadm, and when it makes sense.
Kubernetes$ keadm gettoken▍A production line with dozens of gateways, a fleet of vehicles, stores spread across the country: they all have computers far from the data center, with unreliable networks and little memory. Running a full Kubernetes cluster at every site is expensive and fragile; managing everything by hand is worse. KubeEdge was built for this scenario: the control plane stays in the cloud and edge nodes keep working even when the connection drops.
What is KubeEdge
KubeEdge is an open source system that extends Kubernetes’ containerized application orchestration and device management to hosts at the edge. It is built on Kubernetes: you keep using kubectl, Deployments and the regular API, but some nodes run far from the cluster, with a lightweight agent.
The project joined the CNCF in 2019, moved to Incubating in 2020 and graduated in 2024. As of November 2026, it remains a Graduated project, licensed under Apache 2.0; check the project page at cncf.io/projects/kubeedge before deciding. The latest version published on the GitHub releases page as of this date is v1.23.1.
According to the graduation announcement, it is used in CDNs, intelligent transportation, energy, retail, logistics, manufacturing, and even in mass-produced vehicles and satellites.
What problem it solves
Kubernetes assumes the kubelet talks to the API server all the time. At the edge, that doesn’t hold:
- Unstable or intermittent networks: a truck in a tunnel, a store on a 4G link, a farm on satellite.
- Limited hardware: ARM gateways with little memory, where a full Kubernetes node is heavy.
- Devices that aren’t computers: Modbus sensors, cameras, PLCs that need to be read and controlled.
- Data volume: sending everything to the cloud costs bandwidth; processing locally reduces latency and protects data.
KubeEdge tackles all four: reliable cloud-edge communication, offline autonomy, a lean agent, and a device model declared as CRDs.
How it works
The architecture has two parts. CloudCore runs in the cloud, next to a regular Kubernetes cluster. EdgeCore runs on each edge node, replacing the traditional kubelet and connecting to CloudCore over WebSocket (or QUIC), with no need to talk directly to the API server.
| Side | Component | Role |
|---|---|---|
| Cloud | CloudHub | WebSocket server; watches cluster changes, caches them and sends them to EdgeHub |
| Cloud | EdgeController | Controller that manages edge nodes and pod metadata, targeting each piece of data at the right node |
| Cloud | DeviceController | Controller that syncs device metadata and status between cloud and edge |
| Edge | EdgeHub | WebSocket client; receives cloud updates and reports host and device status |
| Edge | Edged | Agent that manages containers on the edge node |
| Edge | MetaManager | Processes messages between Edged and EdgeHub and persists metadata in a local SQLite database |
| Edge | EventBus | MQTT client (for example, with mosquitto) for publish/subscribe |
| Edge | DeviceTwin | Stores device state and syncs it with the cloud |
| Edge | ServiceBus | HTTP client that lets the cloud reach REST services at the edge |
Offline autonomy
The key piece is MetaManager: everything the edge receives (pods, ConfigMaps, Secrets) is written to a local SQLite database. If the link drops or the node restarts without a network, EdgeCore rebuilds its state from that database and applications keep running. When the connection comes back, pending messages are synced. The documentation calls this Edge Autonomy.
Devices, mappers and MQTT
Devices are described with two CRDs in the devices.kubeedge.io group (version v1beta1 since KubeEdge 1.15): DeviceModel, which defines the properties of a type of equipment, and Device, which represents a physical instance bound to a node. The piece that talks to the hardware is the mapper, one program per protocol (Modbus, Bluetooth, OPC UA…) that reads and writes values and hands them to DeviceTwin. MQTT acts as a local bus, so applications and devices can exchange messages at the edge itself.
Hands-on example
Installation uses the keadm CLI. The commands below follow the official documentation; they were not run for this article, since they require a real cluster and edge machines. Keep the same version in the cloud and at the edge.
# On the cloud side (a machine with access to the cluster)
keadm init --advertise-address="203.0.113.10" \
--kubeedge-version=v1.23.1 \
--kube-config=/root/.kube/config
# Generates the token edge nodes will use
keadm gettoken
# On the edge node (needs a container runtime installed)
keadm join --cloudcore-ipport="203.0.113.10":10000 \
--token=<token> \
--kubeedge-version=v1.23.1
# Checking, back in the cloud
kubectl get nodes -l node-role.kubernetes.io/edge
CloudCore ports 10000 and 10002 must be reachable from edge nodes. keadm doesn’t install Kubernetes or the container runtime. To undo, use keadm reset.
Then a regular workload can be targeted at the edge through the label KubeEdge applies to edge nodes:
apiVersion: apps/v1
kind: Deployment
metadata:
name: sensor-reader
namespace: factory
spec:
replicas: 1
selector:
matchLabels:
app: sensor-reader
template:
metadata:
labels:
app: sensor-reader
spec:
nodeSelector:
node-role.kubernetes.io/edge: ""
containers:
- name: reader
image: registry.example.com/your-org/sensor-reader:1.0.0
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
memory: 128Mi
And the pair of device CRDs, based on the documentation’s example (a temperature sensor over Modbus):
apiVersion: devices.kubeedge.io/v1beta1
kind: DeviceModel
metadata:
name: temperature-sensor
spec:
protocol: modbus
properties:
- name: temp
description: oven temperature
type: INT
accessMode: ReadWrite
maximum: "100"
minimum: "1"
unit: "Celsius"
---
apiVersion: devices.kubeedge.io/v1beta1
kind: Device
metadata:
name: oven-01
spec:
deviceModelRef:
name: temperature-sensor
nodeName: factory-edge-01
protocol:
protocolName: modbus
configData:
ip: 192.168.10.50
port: 1502
properties:
- name: temp
collectCycle: 10000000000 # collect every 10 s (in nanoseconds)
reportCycle: 10000000000
reportToCloud: true
pushMethod:
mqtt:
address: tcp://127.0.0.1:1883
topic: oven-01/temp
qos: 0
retained: false
visitors:
protocolName: modbus
configData:
register: "HoldingRegister"
offset: 2
limit: 1
scale: 1
With a Modbus mapper running on node factory-edge-01, the value it reads shows up in the Device status in the cloud and is published to the local MQTT topic.
When to use it (and when not to)
Use KubeEdge when:
- You have many remote nodes on unreliable networks and want to manage them from a single control plane.
- Applications must keep running offline, including after a restart.
- There are physical devices to read and control, and you want to model them declaratively.
- The edge hardware is too constrained for a full kubelet.
Avoid it when:
- The “edge” is really a small data center with a good network: a regular cluster, perhaps managed with GitOps, is simpler.
- Each site needs an independent cluster, with its own control plane.
- Your team hasn’t mastered basic Kubernetes yet. KubeEdge adds components, certificates and its own networking model; start with how Kubernetes works.
Alternatives
| Option | Model | When it makes sense |
|---|---|---|
| KubeEdge | Control plane in the cloud, lightweight agent at the edge | Many remote nodes, offline autonomy, IoT devices |
| K3s | A lightweight Kubernetes cluster at each site | Sites that need their own cluster; see What is Rancher |
| OpenYurt | Also extends a central cluster to the edge | CNCF alternative with a similar approach |
| Regular cluster + GitOps | Independent clusters synced from Git | Edge sites with good networks and a team used to GitOps |
For cloud-edge networking, it’s worth reviewing the fundamentals of Kubernetes networking before choosing a CNI.
Summary
- KubeEdge extends Kubernetes to the edge with CloudCore in the cloud and EdgeCore on remote nodes
- CNCF Graduated project as of November 2026; check the current status on the project page
- Metadata persisted in SQLite keeps nodes autonomous when the network drops or the node restarts
- DeviceModel and Device (
devices.kubeedge.io/v1beta1) describe devices; mappers speak the protocol - MQTT serves as a local bus between applications and devices
-
keadm init,keadm gettokenandkeadm joininstall cloud and edge, with matching versions - Use it when there are many remote nodes and unstable networks; prefer independent clusters when each site needs full autonomy
At the edge, the network will go down: KubeEdge starts from that premise instead of treating it as an exception.