github.com/midokura/kubeedge@v1.2.0-mido.0/build/cloud/README.md (about) 1 ## Deploy the cloud part into a k8s cluster 2 3 This method will guide you to deploy the cloud part into a k8s cluster, 4 so you need to login to the k8s master node (or where else if you can 5 operate the cluster with `kubectl`). 6 7 The manifests and scripts in `github.com/kubeedge/kubeedge/build/cloud` 8 will be used, so place these files to somewhere you can kubectl with. 9 10 First, ensure your k8s cluster can pull edge controller image. If the 11 image not exist. We can make one, and push to your registry. 12 13 ```bash 14 cd $GOPATH/src/github.com/kubeedge/kubeedge 15 make cloudimage 16 ``` 17 18 Then, we need to generate the tls certs. It then will give us 19 `06-secret.yaml` if succeeded. 20 21 ```bash 22 cd build/cloud 23 ../tools/certgen.sh buildSecret | tee ./06-secret.yaml 24 ``` 25 26 Second, we create k8s resources from the manifests in name order. Before 27 creating, check the content of each manifest to make sure it meets your 28 environment. 29 30 ```bash 31 for resource in $(ls *.yaml); do kubectl create -f $resource; done 32 ``` 33 34 Last, base on the `08-service.yaml.example`, create your own service, 35 to expose cloud hub to outside of k8s cluster, so that edge core can 36 connect to.