diff options
| author | Jun Du <dujun5@huawei.com> | 2019-03-22 10:15:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-22 10:15:13 +0800 |
| commit | 9f5d641eba04f543129f063cb6253a822f9048eb (patch) | |
| tree | 0317106259c8dcc8cb6e7af95a6569502a60dc3c /README.md | |
| parent | Merge pull request #285 from mazengxie/master (diff) | |
| parent | Modify format and fix word errors (diff) | |
| download | kubeedge-9f5d641eba04f543129f063cb6253a822f9048eb.tar.gz | |
Merge pull request #275 from zhanghongtong/master
Update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 30 |
1 files changed, 22 insertions, 8 deletions
@@ -224,11 +224,11 @@ openssl genrsa -des3 -out rootCA.key 4096 # Generate Root Certificate openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.crt # Generate Key -openssl genrsa -out kubeedge.key 2048 +openssl genrsa -out edge.key 2048 # Generate csr, Fill required details after running the command -openssl req -new -key kubeedge.key -out kubeedge.csr +openssl req -new -key edge.key -out edge.csr # Generate Certificate -openssl x509 -req -in kubeedge.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out kubeedge.crt -days 500 -sha256 +openssl x509 -req -in edge.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out edge.crt -days 500 -sha256 ``` ### Clone KubeEdge @@ -279,6 +279,11 @@ more than once etc. are applicable here as well. ### Run Cloud ++ The path to the generated certificates should be updated in `$GOPATH/src/github.com/kubeedge/kubeedge/cloud/edgecontroller/conf/controller.yaml`. Please update the correct paths for the following : + + cloudhub.ca + + cloudhub.cert + + cloudhub.key + ```shell cd $GOPATH/src/github.com/kubeedge/kubeedge/cloud/edgecontroller # run edge controller @@ -291,12 +296,21 @@ cd $GOPATH/src/github.com/kubeedge/kubeedge/cloud/edgecontroller We have provided a sample node.json to add a node in kubernetes. Please make sure edge-node is added in kubernetes. Run below steps to add edge-node. -```shell -kubectl apply -f $GOPATH/src/github.com/kubeedge/kubeedge/build/node.json -``` ++ Modify the `$GOPATH/src/github.com/kubeedge/kubeedge/build/node.json` file and change `metadata.name` to the IP of the edge node ++ Deploy node + ```shell + kubectl apply -f $GOPATH/src/github.com/kubeedge/kubeedge/build/node.json + ``` -Run Edge +Modify the `$GOPATH/src/github.com/kubeedge/kubeedge/edge/conf/edge.yaml` configuration file ++ Replace `edgehub.websocket.certfile` and `edgehub.websocket.keyfile` with your own certificate path ++ Update the IP address of the master in the `websocket.url` field. ++ replace `fb4ebb70-2783-42b8-b3ef-63e2fd6d242e`q with edge node ip in edge.yaml for the below fields : + + `websocket:URL` + + `controller:node-id` + + `edged:hostname-override` +Run edge ```shell # run mosquitto mosquitto -d -p 1883 @@ -309,7 +323,7 @@ mosquitto -d -p 1883 nohup ./edge_core > edge_core.log 2>&1 & ``` -After the Cloud and Edge parts are started, you can use below command to check the edge node status. +After the Cloud and Edge parts have started, you can use below command to check the edge node status. ```shell kubectl get nodes |
