From 5ef29ed0c567b7ddaa10d43fc61a6c30aa5675f7 Mon Sep 17 00:00:00 2001 From: sarthaksarthak9 Date: Sat, 25 Nov 2023 19:19:49 +0530 Subject: [PATCH 1/5] Signed-off-by: sarthaksarthak9 Readme --- KubeEdge v1.14.2/Traffic-Light-Demo/Readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 KubeEdge v1.14.2/Traffic-Light-Demo/Readme.md 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 From 4dd669fb3bd492c44535955395821343203d1432 Mon Sep 17 00:00:00 2001 From: sarthaksarthak9 Date: Sat, 25 Nov 2023 19:20:09 +0530 Subject: [PATCH 2/5] Signed-off-by: sarthaksarthak9 integrate all steps --- .../Traffic-Light-Demo/index.json | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 KubeEdge v1.14.2/Traffic-Light-Demo/index.json 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 From 54ec6c6fe1eea240024c7668e260269a887fbb71 Mon Sep 17 00:00:00 2001 From: sarthaksarthak9 Date: Sat, 25 Nov 2023 19:27:17 +0530 Subject: [PATCH 3/5] Signed-off-by: sarthaksarthak9 step1 --- KubeEdge v1.14.2/Traffic-Light-Demo/step1.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 KubeEdge v1.14.2/Traffic-Light-Demo/step1.md 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 From 0cfee1cd2c80b61f1de82ecd279d5fe865b4345a Mon Sep 17 00:00:00 2001 From: sarthaksarthak9 Date: Sat, 25 Nov 2023 19:27:38 +0530 Subject: [PATCH 4/5] Signed-off-by: sarthaksarthak9 step2 --- KubeEdge v1.14.2/Traffic-Light-Demo/step2.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 KubeEdge v1.14.2/Traffic-Light-Demo/step2.md 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 From edabd99eda74e49ddd37208bbac914aff0995f5e Mon Sep 17 00:00:00 2001 From: sarthaksarthak9 Date: Sat, 25 Nov 2023 19:27:51 +0530 Subject: [PATCH 5/5] Signed-off-by: sarthaksarthak9 step3 --- KubeEdge v1.14.2/Traffic-Light-Demo/step3.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 KubeEdge v1.14.2/Traffic-Light-Demo/step3.md 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