diff --git a/KubeEdge v1.14.2/Traffic-Light-Demo/Readme.md b/KubeEdge v1.14.2/Traffic-Light-Demo/Readme.md new file mode 100644 index 0000000..dbf05db --- /dev/null +++ b/KubeEdge v1.14.2/Traffic-Light-Demo/Readme.md @@ -0,0 +1 @@ +# Kubeedge-traffic-light \ No newline at end of file diff --git a/KubeEdge v1.14.2/Traffic-Light-Demo/index.json b/KubeEdge v1.14.2/Traffic-Light-Demo/index.json new file mode 100644 index 0000000..29f9241 --- /dev/null +++ b/KubeEdge v1.14.2/Traffic-Light-Demo/index.json @@ -0,0 +1,23 @@ +{ + "title": "KubeEdge Deployment", + "description": "Traffic-Light-Demo", + "details": { + "steps": [ + { + "title": "Step 1/3", + "text": "step1.md" + }, + { + "title": "Step 2/3", + "text": "step2.md" + }, + { + "title": "Step 3/3", + "text": "step3.md" + } + ] + }, + "backend": { + "imageid": "ubuntu" + } +} \ No newline at end of file diff --git a/KubeEdge v1.14.2/Traffic-Light-Demo/step1.md b/KubeEdge v1.14.2/Traffic-Light-Demo/step1.md new file mode 100644 index 0000000..d39bbc4 --- /dev/null +++ b/KubeEdge v1.14.2/Traffic-Light-Demo/step1.md @@ -0,0 +1,11 @@ +### clone the repository + +``` +git clone https://github.com/kubeedge/examples/tree/master/traffic-light +``` + +### build at edge node: + +``` +make +``` \ No newline at end of file diff --git a/KubeEdge v1.14.2/Traffic-Light-Demo/step2.md b/KubeEdge v1.14.2/Traffic-Light-Demo/step2.md new file mode 100644 index 0000000..5b1a831 --- /dev/null +++ b/KubeEdge v1.14.2/Traffic-Light-Demo/step2.md @@ -0,0 +1,12 @@ +### create crds at cloud node: + +``` +cd crd +kubectl apply -f model.yaml +``` +replace "" with your edge node name + +``` +sed -i 's#raspberrypi##' instance.yaml +kubectl apply -f instance.yaml +``` \ No newline at end of file diff --git a/KubeEdge v1.14.2/Traffic-Light-Demo/step3.md b/KubeEdge v1.14.2/Traffic-Light-Demo/step3.md new file mode 100644 index 0000000..e82dfb2 --- /dev/null +++ b/KubeEdge v1.14.2/Traffic-Light-Demo/step3.md @@ -0,0 +1,7 @@ +**Note: instance must be created after model and deleted before model.** + +### create demo at cloud node: + +``` +kubectl apply -f deploy.yaml +``` \ No newline at end of file