Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.11 KB

Deploy the cloud part into a k8s cluster

This method will guide you to deploy the cloud part into a k8s cluster, so you need to login to the k8s master node (or where else if you can operate the cluster with kubectl).

The manifests and scripts in github.com/kubeedge/kubeedge/build/cloud will be used, so place these files to somewhere you can kubectl with.

First, ensure your k8s cluster can pull edge controller image. If the image not exist. We can make one, and push to your registry.

cd $GOPATH/src/github.com/kubeedge/kubeedge
make cloudimage

Then, we need to generate the tls certs. It then will give us 06-secret.yaml if succeeded.

cd build/cloud
../tools/certgen.sh buildSecret | tee ./06-secret.yaml

Second, we create k8s resources from the manifests in name order. Before creating, check the content of each manifest to make sure it meets your environment.

for resource in $(ls *.yaml); do kubectl create -f $resource; done

Last, base on the 08-service.yaml.example, create your own service, to expose cloud hub to outside of k8s cluster, so that edge core can connect to.