Difficulty: Beginner
Estimated Time: 20 minutes

KubeEdge is an open source system extending native containerized application orchestration and device management to hosts at the Edge.

It is built upon Kubernetes and provides core infrastructure support for networking, application deployment and metadata synchronization between cloud and edge.

This scenario gives a hands-on experience of KubeEdge Deployment.

Congratulations on successful completion of KubeEdge Deployment Scenario !!!

KubeEdge Deployment

Step 1 of 10

Step 1

Environment Setup for Cloud Node

This step basically sets up the environment required for deploying kubeedge.

Do kubeadm init

kubeadm init --kubernetes-version $(kubeadm version -o short) --pod-network-cidr=10.244.0.0/16

Perform following steps to start using the cluster:

mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/a70459be0084506e4ec919aa1c114638878db11b/Documentation/kube-flannel.yml

Make k8s apiserver listen on insecure port 8080 and update insecure bind address to 0.0.0.0 for edgecontroller/kubectl to work with http connection to Kubernetes apiserver. Update this parameters in the kube-apiserver.yaml file.

Edit - --insecure-port=8080

Add - --insecure-bind-address=0.0.0.0

The below command will open the file and update the details in the file as specified.

vim /etc/kubernetes/manifests/kube-apiserver.yaml

Create folder structre for cloning the base code.

mkdir -p kubeedge/src

Set GOPATH

export GOPATH=/root/kubeedge

Verify whether GOPATH is set correctly

echo $GOPATH

Terminal Host 2