github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/docs/setup/deploy-edge-node.md (about) 1 # Deploy Edge Node Manually 2 3 + Copy `$GOPATH/src/github.com/kubeedge/kubeedge/build/node.json` to your working directory and change `metadata.name` to the name of edge node 4 5 ```shell 6 mkdir -p ~/kubeedge/yaml 7 cp $GOPATH/src/github.com/kubeedge/kubeedge/build/node.json ~/kubeedge/yaml 8 ``` 9 10 Node.json 11 12 ```script 13 { 14 "kind": "Node", 15 "apiVersion": "v1", 16 "metadata": { 17 "name": "edge-node", 18 "labels": { 19 "name": "edge-node", 20 "node-role.kubernetes.io/edge": "" 21 } 22 } 23 } 24 ``` 25 26 **Note:** 27 1. the `metadata.name` must keep in line with edgecore's config `modules.edged.hostnameOverride`. 28 29 2. Make sure role is set to edge for the node. For this a key of the form `"node-role.kubernetes.io/edge"` must be present in `metadata.labels`. 30 If role is not set for the node, the pods, configmaps and secrets created/updated in the cloud cannot be synced with the node they are targeted for. 31 32 + Deploy edge node (**you must run the command on cloud side**) 33 34 ```shell 35 kubectl apply -f ~/kubeedge/yaml/node.json 36 ```