Start Developing KubeEdge

In this section, we would cover the below topics

  1. Abstract
  2. Pre-Requisite
  3. Setup KubeEdge
  4. Configure KubeEdge
  5. Run KubeEdge
  6. KubeEdge Pre-Check

Abstract

KubeEdge is composed of cloud and edge sides. It is built upon Kubernetes and provides core infrastructure support for networking, application deployment and metadata synchronization between cloud and edge. So if we want to setup KubeEdge, we need to setup Kubernetes cluster (exisiting cluster can be used), cloud side and edge side.

  • on cloud side, we need to install Docker, Kubernetes cluster and cloudcore.
  • on edge side, we need to install Docker, MQTT (We can also use internal MQTT broker) and edgecore.

Pre-Requisite

  • Please refer Kubernetes-compatibility to understand Kubernetes compatibility and determine what version of Docker, Kubernetes can be installed.
  • Please refer Golang dependency below to understand what version of Golang can be installed.

Golang dependency

Golang 1.10Golang 1.11Golang 1.12Golang 1.13
KubeEdge 1.0
KubeEdge 1.1
KubeEdge 1.2
KubeEdge HEAD (master)

Cloud side (KubeEdge Master)

If you are creating Kubernetes cluster for just testing KubeEdge, you can start with Flannel.

Check Kubernetes Master Status: It should be ready.

  1. kubectl get nodes
  2. NAME STATUS ROLES AGE VERSION
  3. kubeedge-master Ready master 4d3h v1.17.1

Edge side (KubeEdge Worker Node)

Note: Do not install kubelet and kube-proxy on edge side

Setup KubeEdge

Setup From Source.

Configure KubeEdge

At this point, we assume that you have completed the installation of KubeEdge and want to configure either Cloudcore or Edgecore

Refer KubeEdge Configuration

Run KubeEdge

Refer KubeEdge Run

KubeEdge Pre-Check

Refer KubeEdge Pre-Check