最佳实践是走Eclipse官方推出的Cloud2Edge
Cloud2Edge
A package connecting and managing sensor style devices. Connecting sensors to the cloud and processing data with a digital twin platform.

You will need a Kubernetes instance, the kubectl
and the helm
tool in order to deploy this package. Please refer to our pre-requisites page for details. Any Kubernetes compatible cluster will do, as long as it meets the requirements.
Check access
Be sure that you are logged in to your Kubernetes cluster:
Copykubectl version
This should print out the version of the client, but must also print out the version of the server.Example output
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T17:01:15Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+c2a5caf", GitCommit:"c2a5caf", GitTreeState:"clean", BuildDate:"2019-09-21T02:12:52Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}
Install the package
The Cloud2Edge package consists of multiple components. In order to keep them together and separate from other components running in your Kubernetes cluster, it is feasible to install them into their own name space. The following command creates the cloud2edge
name space but you can select any other name as well.
CopyNS=cloud2edge
kubectl create namespace $NS
Next, install the package to the name space using Helm.
Kubernetes variants like kind or Minikube do not support exposing service endpoints via load balancers out of the box. Instead, services are exposed via NodePorts.
CopyRELEASE=c2e
helm install -n $NS --wait --timeout 15m $RELEASE eclipse-iot/cloud2edge
Ready to run
Once the package’s pods are all up and running, you can start using its services. The easiest way of getting to know the Cloud2Edge package is by taking a little tour.
链接位置
具体操作移步 -> https://www.eclipse.org/packages/packages/cloud2edge/tour/#create-a-new-tenant
将通过 Helm 安装 microk8s的程序包
具体的配置和内容移步 -> https://github.com/eclipse/packages/tree/master/packages/cloud2edge
Comments | NOTHING