From 446a4684c7b4a9ffe15f5c7b08f043c699a35e8b Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:46:55 +0530 Subject: [PATCH 01/76] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b277b6..6ba6f51 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Fornax Bash Scripts for Deployment -### 1. Clone the repository into Node-A +### 1. Clone the repository into Node-A, Node-B, Node-C git clone https://github.com/click2cloud-prajwal/fornaxscript.git -### 2. Edit the IP's in the script +### 2. Edit the IP's in all the Three scripts: #### export a= (ip address of node-a) #### export b= (ip address of node-b) #### export c= (ip address of node-c) -### 3. Run the Script +### 3. Run the Script: #### sudo bash fornaxscript/fornax1.sh #### (for node-a run the 'fornax1.sh', Simultaneously run the 'fornax2.sh' for node-b and 'fornax3.sh' for node-c) -### 4. Verify the Edgecluster in Node-A +### 4. Verify the Edgecluster in Node-A: #### kubectl get edgecluster From fe5ee8f79d16a70a2bab04ad413345bd236e9d48 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:47:48 +0530 Subject: [PATCH 02/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ba6f51..54bcc46 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git ### 2. Edit the IP's in all the Three scripts: -#### export a= (ip address of node-a) -#### export b= (ip address of node-b) -#### export c= (ip address of node-c) +#### export a= +#### export b= +#### export c= ### 3. Run the Script: #### sudo bash fornaxscript/fornax1.sh From 1b6ae08778febb0366db54dcd337572721e0b0b0 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:48:10 +0530 Subject: [PATCH 03/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 54bcc46..65160af 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git ### 2. Edit the IP's in all the Three scripts: -#### export a= -#### export b= -#### export c= +#### export a= (IP address of node-a) +#### export b= (IP address of node-b) +#### export c= (IP address of node-c) ### 3. Run the Script: #### sudo bash fornaxscript/fornax1.sh From ffd43e683481254ce578cbd0033e758a2b3f4c8d Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:48:27 +0530 Subject: [PATCH 04/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65160af..4a09261 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git #### export c= (IP address of node-c) ### 3. Run the Script: -#### sudo bash fornaxscript/fornax1.sh +#### - sudo bash fornaxscript/fornax1.sh #### (for node-a run the 'fornax1.sh', Simultaneously run the 'fornax2.sh' for node-b and 'fornax3.sh' for node-c) ### 4. Verify the Edgecluster in Node-A: From 1c7ed98611f23b5f98851418ad77f654b7eceb9b Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:49:51 +0530 Subject: [PATCH 05/76] Update fornax3.sh --- fornax3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fornax3.sh b/fornax3.sh index fc876fa..74e0d52 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -12,8 +12,8 @@ pushd /root hostnamectl set-hostname node-c ufw disable swapoff -a -mkdir -p /etc/kubeedge/ca -mkdir -p /etc/kubeedge/certs +#mkdir -p /etc/kubeedge/ca +#mkdir -p /etc/kubeedge/certs apt-get -y update echo -e 'br_netfilter' | cat > /etc/modules-load.d/k8s.conf echo -e 'net.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1' | cat >> /etc/sysctl.d/k8s.conf From 285b388070298e5ec3eb179d7c528d40a4f19f63 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:55:07 +0530 Subject: [PATCH 06/76] Update fornax2.sh --- fornax2.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fornax2.sh b/fornax2.sh index 56e390d..5ceba69 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -7,6 +7,7 @@ set -x export a=192.168.2.50 export b=192.168.2.51 +export c=192.168.2.52 pushd /root hostnamectl set-hostname node-b From be0671b4d868e2e3c85cdace99096df13e52eef1 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:18:24 +0530 Subject: [PATCH 07/76] Update fornax3.sh --- fornax3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fornax3.sh b/fornax3.sh index 74e0d52..b4363b5 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -53,7 +53,7 @@ pushd /root/go/src/github.com git clone https://github.com/CentaurusInfra/fornax.git mv fornax kubeedge pushd /root/go/src/github.com/kubeedge - ssh -t root@$b "echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/go/src/github.com/kubeedge" + #ssh -t root@$b "echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/go/src/github.com/kubeedge" #echo yes | scp -r $b:/etc/kubeedge/certs /etc/kubeedge #echo yes | scp -r $b:/etc/kubeedge/ca /etc/kubeedge #echo yes | scp -r $b:/etc/kubernetes/admin.conf /root/go/src/github.com/kubeedge From 1ae7fd27877bb4c6664923347429d5d180c92aba Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:20:06 +0530 Subject: [PATCH 08/76] Update fornax2.sh --- fornax2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fornax2.sh b/fornax2.sh index 5ceba69..e241739 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -82,8 +82,8 @@ git clone https://github.com/CentaurusInfra/fornax.git nohup _output/local/bin/edgecore --edgecluster > edgecore.logs 2>&1 & export KUBECONFIG=/etc/kubernetes/admin.conf nohup _output/local/bin/cloudcore > cloudcore.logs 2>&1 & - #ssh -t root@$c "mkdir -p /root/go/src/github.com/kubeedge" - #echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/go/src/github.com/kubeedge + ssh -t root@$c "mkdir -p /root/go/src/github.com/kubeedge" + echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/go/src/github.com/kubeedge ssh -t root@$c "mkdir -p /etc/kubeedge" echo yes | scp -r /etc/kubeedge/certs $c:/etc/kubeedge echo yes | scp -r /etc/kubeedge/ca $c:/etc/kubeedge From 49b787246e810a1f392f9d06883d1a712c7928e6 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:32:37 +0530 Subject: [PATCH 09/76] Update fornax2.sh --- fornax2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fornax2.sh b/fornax2.sh index e241739..9e8b94a 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -56,8 +56,8 @@ pushd /root/go/src/github.com git clone https://github.com/CentaurusInfra/fornax.git mv fornax kubeedge pushd /root/go/src/github.com/kubeedge - echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge - echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge + #echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge + #echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge echo yes | scp -r $a:/etc/kubernetes/admin.conf /root/go/src/github.com/kubeedge make all make WHAT=cloudcore From 2ee9458e7449cb0ba5eef1d23d1fd1f90b5612f4 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:33:22 +0530 Subject: [PATCH 10/76] Update fornax3.sh --- fornax3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fornax3.sh b/fornax3.sh index b4363b5..e05d8c0 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -48,7 +48,7 @@ sleep 10s cp /usr/local/go/bin/go /usr/local/bin source /root/.bashrc go version -mkdir -p go/src/github.com +#mkdir -p go/src/github.com pushd /root/go/src/github.com git clone https://github.com/CentaurusInfra/fornax.git mv fornax kubeedge From ac3584c5cba7c9beaa6fafcdfe523b753191f5d9 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:35:45 +0530 Subject: [PATCH 11/76] Update fornax2.sh --- fornax2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fornax2.sh b/fornax2.sh index 9e8b94a..1c7fbbb 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -15,8 +15,8 @@ ufw disable swapoff -a mkdir -p /etc/kubeedge/ca mkdir -p /etc/kubeedge/certs -echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge -echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge +#echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge +#echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge apt-get -y update echo -e 'br_netfilter' | cat > /etc/modules-load.d/k8s.conf echo -e 'net.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1' | cat >> /etc/sysctl.d/k8s.conf @@ -56,8 +56,8 @@ pushd /root/go/src/github.com git clone https://github.com/CentaurusInfra/fornax.git mv fornax kubeedge pushd /root/go/src/github.com/kubeedge - #echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge - #echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge + echo yes | scp -r $a:/etc/kubeedge/certs /etc/kubeedge + echo yes | scp -r $a:/etc/kubeedge/ca /etc/kubeedge echo yes | scp -r $a:/etc/kubernetes/admin.conf /root/go/src/github.com/kubeedge make all make WHAT=cloudcore From 8e9840e2de24eaee28cf292691fa4c4abbb39b65 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:47:34 +0530 Subject: [PATCH 12/76] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a09261..4570752 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git #### export c= (IP address of node-c) ### 3. Run the Script: -#### - sudo bash fornaxscript/fornax1.sh -#### (for node-a run the 'fornax1.sh', Simultaneously run the 'fornax2.sh' for node-b and 'fornax3.sh' for node-c) +#### - sudo bash fornaxscript/fornax1.sh (for node-a) +#### - sudo bash fornaxscript/fornax2.sh (for node-b) +#### - sudo bash fornaxscript/fornax3.sh (for node-c) ### 4. Verify the Edgecluster in Node-A: #### kubectl get edgecluster From 71b21029ca83abb9c7c759e3b4d96da1f3b21ebd Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:48:23 +0530 Subject: [PATCH 13/76] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4570752..13413ef 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # Fornax Bash Scripts for Deployment ### 1. Clone the repository into Node-A, Node-B, Node-C -git clone https://github.com/click2cloud-prajwal/fornaxscript.git + git clone https://github.com/click2cloud-prajwal/fornaxscript.git ### 2. Edit the IP's in all the Three scripts: -#### export a= (IP address of node-a) -#### export b= (IP address of node-b) -#### export c= (IP address of node-c) +#### export a= (IP address of node-a) +#### export b= (IP address of node-b) +#### export c= (IP address of node-c) ### 3. Run the Script: -#### - sudo bash fornaxscript/fornax1.sh (for node-a) -#### - sudo bash fornaxscript/fornax2.sh (for node-b) -#### - sudo bash fornaxscript/fornax3.sh (for node-c) +#### - sudo bash fornaxscript/fornax1.sh (for node-a) +#### - sudo bash fornaxscript/fornax2.sh (for node-b) +#### - sudo bash fornaxscript/fornax3.sh (for node-c) ### 4. Verify the Edgecluster in Node-A: -#### kubectl get edgecluster +#### - kubectl get edgecluster From 6d95e0c62fde29443a6b8ee42169d111820699f5 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:48:57 +0530 Subject: [PATCH 14/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13413ef..9795bf6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Fornax Bash Scripts for Deployment ### 1. Clone the repository into Node-A, Node-B, Node-C - git clone https://github.com/click2cloud-prajwal/fornaxscript.git + git clone https://github.com/click2cloud-prajwal/fornaxscript.git ### 2. Edit the IP's in all the Three scripts: #### export a= (IP address of node-a) @@ -14,5 +14,5 @@ #### - sudo bash fornaxscript/fornax3.sh (for node-c) ### 4. Verify the Edgecluster in Node-A: -#### - kubectl get edgecluster + kubectl get edgecluster From 181c26e840e6f9b2820fdfaaebab26365c0b79a3 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:50:48 +0530 Subject: [PATCH 15/76] Update fornax1.sh --- fornax1.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fornax1.sh b/fornax1.sh index 12d1758..eb16377 100644 --- a/fornax1.sh +++ b/fornax1.sh @@ -93,6 +93,7 @@ git clone https://github.com/CentaurusInfra/fornax.git #echo yes | scp -r /etc/kubeedge/ca $c:/etc/kubeedge #scp -r /root/fornaxscript/fornax2.sh $b:/root #scp -r /root/fornaxscript/fornax3.sh $c:/root + sleep 5s cat cloudcore.logs #pushd /root #ssh -t root@$b "sudo bash fornax2.sh" From b18d79ff94db03f48efdcb25db04cce2569d4fea Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:53:11 +0530 Subject: [PATCH 16/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9795bf6..c136f1b 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ #### export b= (IP address of node-b) #### export c= (IP address of node-c) -### 3. Run the Script: +### 3. Run the Scripts: #### - sudo bash fornaxscript/fornax1.sh (for node-a) -#### - sudo bash fornaxscript/fornax2.sh (for node-b) -#### - sudo bash fornaxscript/fornax3.sh (for node-c) +#### - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) +#### - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) ### 4. Verify the Edgecluster in Node-A: kubectl get edgecluster From 75e6fc6fc1ce957a271fd241d2f91fb55c84d4de Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:14:29 +0530 Subject: [PATCH 17/76] Update fornax2.sh --- fornax2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fornax2.sh b/fornax2.sh index 1c7fbbb..9d6b78d 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -82,8 +82,8 @@ git clone https://github.com/CentaurusInfra/fornax.git nohup _output/local/bin/edgecore --edgecluster > edgecore.logs 2>&1 & export KUBECONFIG=/etc/kubernetes/admin.conf nohup _output/local/bin/cloudcore > cloudcore.logs 2>&1 & - ssh -t root@$c "mkdir -p /root/go/src/github.com/kubeedge" - echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/go/src/github.com/kubeedge + ssh -t root@$c "mkdir -p /root/go/src/github.com" + echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/ ssh -t root@$c "mkdir -p /etc/kubeedge" echo yes | scp -r /etc/kubeedge/certs $c:/etc/kubeedge echo yes | scp -r /etc/kubeedge/ca $c:/etc/kubeedge From 2d44c075ab93c5b7851e9870367ed3437f120848 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:15:13 +0530 Subject: [PATCH 18/76] Update fornax2.sh --- fornax2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fornax2.sh b/fornax2.sh index 9d6b78d..855310f 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -82,7 +82,7 @@ git clone https://github.com/CentaurusInfra/fornax.git nohup _output/local/bin/edgecore --edgecluster > edgecore.logs 2>&1 & export KUBECONFIG=/etc/kubernetes/admin.conf nohup _output/local/bin/cloudcore > cloudcore.logs 2>&1 & - ssh -t root@$c "mkdir -p /root/go/src/github.com" + #ssh -t root@$c "mkdir -p /root/go/src/github.com" echo yes | scp -r /etc/kubernetes/admin.conf $c:/root/ ssh -t root@$c "mkdir -p /etc/kubeedge" echo yes | scp -r /etc/kubeedge/certs $c:/etc/kubeedge From 5b32d5068b096bbed1ef27fb29c682f16269194c Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:16:02 +0530 Subject: [PATCH 19/76] Update fornax3.sh --- fornax3.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fornax3.sh b/fornax3.sh index e05d8c0..53871ee 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -57,6 +57,7 @@ git clone https://github.com/CentaurusInfra/fornax.git #echo yes | scp -r $b:/etc/kubeedge/certs /etc/kubeedge #echo yes | scp -r $b:/etc/kubeedge/ca /etc/kubeedge #echo yes | scp -r $b:/etc/kubernetes/admin.conf /root/go/src/github.com/kubeedge + cp /root/admin.conf /root/go/src/github.com/kubeedge make all make WHAT=edgecore mkdir /etc/kubeedge/config -p From 29c3a33df59b9c93ea8ff5e8b3309bfea6bb41dc Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:18:02 +0530 Subject: [PATCH 20/76] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c136f1b..bd55c33 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,7 @@ ### 4. Verify the Edgecluster in Node-A: kubectl get edgecluster - +### 5. To see cloudcore & edgecore logs: + cd /root/go/src/github.com/kubeedge + cat cloudcore.logs + cat edgecore.logs From 09da3b78f37ea7a58a118ac8790ace95ae003cb8 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:18:39 +0530 Subject: [PATCH 21/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd55c33..6bb4d1e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ### 4. Verify the Edgecluster in Node-A: kubectl get edgecluster -### 5. To see cloudcore & edgecore logs: +### 5. To see Cloudcore & Edgecore logs: cd /root/go/src/github.com/kubeedge cat cloudcore.logs cat edgecore.logs From f85019b27eecf1e35f578d7e5f58af50510158f0 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:20:41 +0530 Subject: [PATCH 22/76] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6bb4d1e..cd20881 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git ### 2. Edit the IP's in all the Three scripts: -#### export a= (IP address of node-a) -#### export b= (IP address of node-b) -#### export c= (IP address of node-c) +##### export a= (IP address of node-a) +##### export b= (IP address of node-b) +##### export c= (IP address of node-c) ### 3. Run the Scripts: -#### - sudo bash fornaxscript/fornax1.sh (for node-a) -#### - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) -#### - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) +##### - sudo bash fornaxscript/fornax1.sh (for node-a) +##### - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) +##### - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) ### 4. Verify the Edgecluster in Node-A: kubectl get edgecluster From 7c9c842a0a5520da721e89a7535a9b468d559869 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:21:12 +0530 Subject: [PATCH 23/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd20881..c4a796a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ### 1. Clone the repository into Node-A, Node-B, Node-C git clone https://github.com/click2cloud-prajwal/fornaxscript.git -### 2. Edit the IP's in all the Three scripts: +### 2. Edit the IP's in all the three scripts: ##### export a= (IP address of node-a) ##### export b= (IP address of node-b) ##### export c= (IP address of node-c) From dbccd3adac3c14224b41786b85b3226ece1bda71 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:26:30 +0530 Subject: [PATCH 24/76] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c4a796a..7f2e7be 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Fornax Bash Scripts for Deployment +### 1. Generate ssh key in Node-B and copy ssh key ID to Node-A & Node-C: + ssh-keygen -t rsa + ssh-copy-id (node-a IP) + ssh-copy-id (node-c IP) + ### 1. Clone the repository into Node-A, Node-B, Node-C git clone https://github.com/click2cloud-prajwal/fornaxscript.git From 5f9ccff26648ff919234383c84bf54efd9f3626c Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:26:54 +0530 Subject: [PATCH 25/76] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7f2e7be..6c24dff 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,22 @@ ssh-copy-id (node-a IP) ssh-copy-id (node-c IP) -### 1. Clone the repository into Node-A, Node-B, Node-C +### 2. Clone the repository into Node-A, Node-B, Node-C git clone https://github.com/click2cloud-prajwal/fornaxscript.git -### 2. Edit the IP's in all the three scripts: +### 3. Edit the IP's in all the three scripts: ##### export a= (IP address of node-a) ##### export b= (IP address of node-b) ##### export c= (IP address of node-c) -### 3. Run the Scripts: +### 4. Run the Scripts: ##### - sudo bash fornaxscript/fornax1.sh (for node-a) ##### - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) ##### - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) -### 4. Verify the Edgecluster in Node-A: +### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster -### 5. To see Cloudcore & Edgecore logs: +### 6. To see Cloudcore & Edgecore logs: cd /root/go/src/github.com/kubeedge cat cloudcore.logs cat edgecore.logs From ed9f697122aebe7ae09efab013fe8a5add19c6f6 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:28:08 +0530 Subject: [PATCH 26/76] Update fornax3.sh --- fornax3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fornax3.sh b/fornax3.sh index 53871ee..d153a2c 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -48,7 +48,7 @@ sleep 10s cp /usr/local/go/bin/go /usr/local/bin source /root/.bashrc go version -#mkdir -p go/src/github.com +mkdir -p go/src/github.com pushd /root/go/src/github.com git clone https://github.com/CentaurusInfra/fornax.git mv fornax kubeedge From 2beeaed9850f74a3a656dc621335095016a32684 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:34:11 +0530 Subject: [PATCH 27/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c24dff..88de243 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fornax Bash Scripts for Deployment +# Fornax Bash Scripts for Deployment (On-Premise) ### 1. Generate ssh key in Node-B and copy ssh key ID to Node-A & Node-C: ssh-keygen -t rsa From 5db4b8074dca2069dccf943810b725a0bf081bbb Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:40:20 +0530 Subject: [PATCH 28/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 88de243..1011d9b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ssh-copy-id (node-c IP) ### 2. Clone the repository into Node-A, Node-B, Node-C - git clone https://github.com/click2cloud-prajwal/fornaxscript.git + git clone https://github.com/click2cloud-prajwal/fornaxscript.git -b test ### 3. Edit the IP's in all the three scripts: ##### export a= (IP address of node-a) From 76c753502decb28c315e9a4558149d16e07feb4e Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:50:30 +0530 Subject: [PATCH 29/76] Update fornax1.sh --- fornax1.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fornax1.sh b/fornax1.sh index eb16377..959638a 100644 --- a/fornax1.sh +++ b/fornax1.sh @@ -5,9 +5,9 @@ set -x -export a=192.168.2.50 -export b=192.168.2.51 -export c=192.168.2.52 +export a= +export b= +export c= #scp -r /root/fornaxscript/fornax2.sh $b:/root #scp -r /root/fornaxscript/fornax3.sh $c:/root From 1dbf0fe240cfb56bfde53e6d3c8000247ce329bf Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:50:58 +0530 Subject: [PATCH 30/76] Update fornax2.sh --- fornax2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fornax2.sh b/fornax2.sh index 855310f..ce6058a 100644 --- a/fornax2.sh +++ b/fornax2.sh @@ -5,9 +5,9 @@ set -x -export a=192.168.2.50 -export b=192.168.2.51 -export c=192.168.2.52 +export a= +export b= +export c= pushd /root hostnamectl set-hostname node-b From 12a8bcab72c39f46f247456f09920a3aa71eda64 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:51:21 +0530 Subject: [PATCH 31/76] Update fornax3.sh --- fornax3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fornax3.sh b/fornax3.sh index d153a2c..3349277 100644 --- a/fornax3.sh +++ b/fornax3.sh @@ -5,8 +5,8 @@ set -x -export b=192.168.2.51 -export c=192.168.2.52 +export b= +export c= pushd /root hostnamectl set-hostname node-c From 6a1f209f385c720e1cb0e524be4ddb9a4d69534f Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:07:33 +0530 Subject: [PATCH 32/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1011d9b..b89600b 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git -b test ### 3. Edit the IP's in all the three scripts: -##### export a= (IP address of node-a) -##### export b= (IP address of node-b) -##### export c= (IP address of node-c) + export a= (IP address of node-a) + export b= (IP address of node-b) + export c= (IP address of node-c) ### 4. Run the Scripts: ##### - sudo bash fornaxscript/fornax1.sh (for node-a) From 8823df5918cc7d87dc8a68b45736bc661ae1b70e Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:08:34 +0530 Subject: [PATCH 33/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b89600b..87dcd0e 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ export c= (IP address of node-c) ### 4. Run the Scripts: -##### - sudo bash fornaxscript/fornax1.sh (for node-a) -##### - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) -##### - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) + sudo bash fornaxscript/fornax1.sh (for node-a) + sudo bash fornaxscript/fornax2.sh (for node-b) ##### (run the script only after successfully running the node-a script) + sudo bash fornaxscript/fornax3.sh (for node-c) ##### (run the script only after successfully running the node-b script) ### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster From 3491775e7598ae8dc43498b2596ac9fd81dcdc42 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:08:50 +0530 Subject: [PATCH 34/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87dcd0e..2542038 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ ### 4. Run the Scripts: sudo bash fornaxscript/fornax1.sh (for node-a) - sudo bash fornaxscript/fornax2.sh (for node-b) ##### (run the script only after successfully running the node-a script) - sudo bash fornaxscript/fornax3.sh (for node-c) ##### (run the script only after successfully running the node-b script) + sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) + sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) ### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster From 5175432b4318549f7d802392b158ea021fe5a4e3 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:09:36 +0530 Subject: [PATCH 35/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2542038..81a40b1 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ export c= (IP address of node-c) ### 4. Run the Scripts: - sudo bash fornaxscript/fornax1.sh (for node-a) - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) + sudo bash fornaxscript/fornax1.sh (for node-a) + sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) + sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) ### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster From f81372985f20cecaf35f9be22d8f5ccb9a320f80 Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:10:00 +0530 Subject: [PATCH 36/76] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 81a40b1..5498877 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ git clone https://github.com/click2cloud-prajwal/fornaxscript.git -b test ### 3. Edit the IP's in all the three scripts: - export a= (IP address of node-a) - export b= (IP address of node-b) - export c= (IP address of node-c) + export a= (IP address of node-a) + export b= (IP address of node-b) + export c= (IP address of node-c) ### 4. Run the Scripts: sudo bash fornaxscript/fornax1.sh (for node-a) @@ -20,6 +20,7 @@ ### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster + ### 6. To see Cloudcore & Edgecore logs: cd /root/go/src/github.com/kubeedge cat cloudcore.logs From c620f67da12f029518ab4495f97bdafe39e010bf Mon Sep 17 00:00:00 2001 From: Click2Cloud-Prajwal <95343388+click2cloud-prajwal@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:18:01 +0530 Subject: [PATCH 37/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5498877..b26b8ab 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ ### 4. Run the Scripts: sudo bash fornaxscript/fornax1.sh (for node-a) - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) + sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) + sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) ### 5. Verify the Edgecluster in Node-A: kubectl get edgecluster From 81fbae3d974190aa5a02e615de8b57fd29957fe9 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:28:52 +0530 Subject: [PATCH 38/76] Update README.md --- README.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b26b8ab..22be5c4 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,26 @@ -# Fornax Bash Scripts for Deployment (On-Premise) - -### 1. Generate ssh key in Node-B and copy ssh key ID to Node-A & Node-C: - ssh-keygen -t rsa +# Bash Scripts for Fornax Deployment +### A: Cloud Core Node +### B: Edge Node with Control Plane +### C: Edge Worker node +### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c) : + ssh-keygen ssh-copy-id (node-a IP) ssh-copy-id (node-c IP) -### 2. Clone the repository into Node-A, Node-B, Node-C - git clone https://github.com/click2cloud-prajwal/fornaxscript.git -b test - -### 3. Edit the IP's in all the three scripts: - export a= (IP address of node-a) - export b= (IP address of node-b) - export c= (IP address of node-c) +### 2. Edit the IP's in all the three scripts: + declare -x a= (IP address of node-a) + declare -x b= (IP address of node-b) + declare -x c= (IP address of node-c) -### 4. Run the Scripts: - sudo bash fornaxscript/fornax1.sh (for node-a) - sudo bash fornaxscript/fornax2.sh (for node-b) (run the script only after successfully running the node-a script) - sudo bash fornaxscript/fornax3.sh (for node-c) (run the script only after successfully running the node-b script) +### 3. Run the Scripts: + sudo bash cloud-core.sh (for node-a) + sudo bash edge-node-control-plane.sh (for node-b) (run the script only after successfully running the node-a script) + sudo bash worker-node.sh (for node-c) (run the script only after successfully running the node-b script) -### 5. Verify the Edgecluster in Node-A: +### 4. Verify the Edgecluster in Node-A: kubectl get edgecluster -### 6. To see Cloudcore & Edgecore logs: - cd /root/go/src/github.com/kubeedge +### 5. To see Cloudcore & Edgecore logs: + cd $HOME/go/src/github.com/fornax cat cloudcore.logs cat edgecore.logs From aa4501e3326f7be30bd809410b087a8b781424e2 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:29:19 +0530 Subject: [PATCH 39/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22be5c4..fe3511d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bash Scripts for Fornax Deployment ### A: Cloud Core Node ### B: Edge Node with Control Plane -### C: Edge Worker node +### C: Edge Worker Node ### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c) : ssh-keygen ssh-copy-id (node-a IP) From 36120e68117378838059ef02a1e04507747b0900 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:30:06 +0530 Subject: [PATCH 40/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe3511d..9fb4ed6 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,12 @@ ### A: Cloud Core Node ### B: Edge Node with Control Plane ### C: Edge Worker Node -### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c) : +### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c): ssh-keygen ssh-copy-id (node-a IP) ssh-copy-id (node-c IP) -### 2. Edit the IP's in all the three scripts: +### 2. Edit the IP's in cloud-core.sh & edge-node-control-plane.sh: declare -x a= (IP address of node-a) declare -x b= (IP address of node-b) declare -x c= (IP address of node-c) From e6b125e9061be773355fb7a2636bd053cef8d528 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:31:08 +0530 Subject: [PATCH 41/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9fb4ed6..3f09f67 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ssh-copy-id (node-a IP) ssh-copy-id (node-c IP) -### 2. Edit the IP's in cloud-core.sh & edge-node-control-plane.sh: +### 2. Edit the IP's in 'cloud-core.sh' & 'edge-node-control-plane.sh': declare -x a= (IP address of node-a) declare -x b= (IP address of node-b) declare -x c= (IP address of node-c) @@ -17,7 +17,7 @@ sudo bash edge-node-control-plane.sh (for node-b) (run the script only after successfully running the node-a script) sudo bash worker-node.sh (for node-c) (run the script only after successfully running the node-b script) -### 4. Verify the Edgecluster in Node-A: +### 4. Verify the Edgecluster in 'cloud-core.sh': kubectl get edgecluster ### 5. To see Cloudcore & Edgecore logs: From b7d8bc28a7ace868dfb0ebcd2da18a506edf0c29 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:38:41 +0530 Subject: [PATCH 42/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f09f67..a5eca2e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bash Scripts for Fornax Deployment -### A: Cloud Core Node -### B: Edge Node with Control Plane -### C: Edge Worker Node +### Node-A: Cloud Core Node +### Node-B: Edge Node with Control Plane +### Node-C: Edge Worker Node ### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c): ssh-keygen ssh-copy-id (node-a IP) From cd357ac4e801ca7b5a4edf602e8c7d6562c4a016 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 21 Jan 2022 16:40:47 +0530 Subject: [PATCH 43/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5eca2e..7fededc 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ssh-copy-id (node-a IP) ssh-copy-id (node-c IP) -### 2. Edit the IP's in 'cloud-core.sh' & 'edge-node-control-plane.sh': +### 2. Edit the IP's in 'cloud-core.sh ' & 'edge-node-control-plane.sh': declare -x a= (IP address of node-a) declare -x b= (IP address of node-b) declare -x c= (IP address of node-c) @@ -17,7 +17,7 @@ sudo bash edge-node-control-plane.sh (for node-b) (run the script only after successfully running the node-a script) sudo bash worker-node.sh (for node-c) (run the script only after successfully running the node-b script) -### 4. Verify the Edgecluster in 'cloud-core.sh': +### 4. Verify the Edgecluster in 'Cloud Core Node' (Node-A): kubectl get edgecluster ### 5. To see Cloudcore & Edgecore logs: From a66da9c914c21930299914888442f1ed4a6c23c8 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:29:01 +0530 Subject: [PATCH 44/76] Update README.md --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7fededc..7157746 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,20 @@ -# Bash Scripts for Fornax Deployment +# Edge Cluster Multi-Layer Setup using Bash Scripts + +### Abstract +The purpose of this document is to **automate** to setup Cloud core and Edge core , and describe the each step to create virtual machine setup the port number, install kubernetes, GoLang, and so on **USING BASH SCRIPTS**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. + + +### Virtual Machine Configuration +• Ubuntu 18.04, one for cloud-core, two for edge-core. +• Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine +• 16 GB RAM, 16 vCPUs, 128 GB storage. + ### Node-A: Cloud Core Node ### Node-B: Edge Node with Control Plane ### Node-C: Edge Worker Node -### 1. Generate ssh key in Edge Node with Control Plane (node-b) and copy ssh key ID to Cloud Core Node (node-a) & Edge Worker node (node-c): - ssh-keygen - ssh-copy-id (node-a IP) - ssh-copy-id (node-c IP) -### 2. Edit the IP's in 'cloud-core.sh ' & 'edge-node-control-plane.sh': - declare -x a= (IP address of node-a) - declare -x b= (IP address of node-b) - declare -x c= (IP address of node-c) +### 2. Input the IP's in 'cloud-core.sh ' & 'edge-node-control-plane.sh': + ### 3. Run the Scripts: sudo bash cloud-core.sh (for node-a) From 0318c5157d777d543a5638b607b9a77397b4969e Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:29:52 +0530 Subject: [PATCH 45/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7157746..e05931c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Edge Cluster Multi-Layer Setup using Bash Scripts ### Abstract -The purpose of this document is to **automate** to setup Cloud core and Edge core , and describe the each step to create virtual machine setup the port number, install kubernetes, GoLang, and so on **USING BASH SCRIPTS**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. +The purpose of this document is to **AUTOMATE setup of Cloud core and Edge core** , and describe the each step to create virtual machine setup the port number, install kubernetes, GoLang, and so on **USING BASH SCRIPTS**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. ### Virtual Machine Configuration From d7454fec4275e2f55550d431dc58adeeace02293 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:47:01 +0530 Subject: [PATCH 46/76] Update README.md --- README.md | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e05931c..6649399 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Edge Cluster Multi-Layer Setup using Bash Scripts ### Abstract -The purpose of this document is to **AUTOMATE setup of Cloud core and Edge core** , and describe the each step to create virtual machine setup the port number, install kubernetes, GoLang, and so on **USING BASH SCRIPTS**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. +The purpose of this document is to **automate setup of Cloud core and Edge core** , and install kubernetes, GoLang, and so on **using bash scripts**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. ### Virtual Machine Configuration @@ -9,18 +9,36 @@ The purpose of this document is to **AUTOMATE setup of Cloud core and Edge core* • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. -### Node-A: Cloud Core Node -### Node-B: Edge Node with Control Plane -### Node-C: Edge Worker Node +### Machine 1: Cloud Core Node +### Machine 2: Edge Node with Control Plane +### Machine 3: Edge Worker Node -### 2. Input the IP's in 'cloud-core.sh ' & 'edge-node-control-plane.sh': - +## Do the following in all the three machines: + sudo -i + +### Edit the sshd file to permit copy files within the Machines. + vi /etc/ssh/sshd_config + +### Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment. + + ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) + +### Now reload the sshd service + systemctl reload sshd.service +### Now set the root password for all the machines + passwd root + + ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) ### 3. Run the Scripts: - sudo bash cloud-core.sh (for node-a) - sudo bash edge-node-control-plane.sh (for node-b) (run the script only after successfully running the node-a script) - sudo bash worker-node.sh (for node-c) (run the script only after successfully running the node-b script) - + sudo bash cloud-core.sh (for machine-1) + sudo bash edge-node-control-plane.sh (for machine 2) (run the script only after successfully running the machine-1 script) + sudo bash worker-node.sh (for machine 3) (run the script only after successfully running the machine-2 script) + +### 2. Input the IP's of Machine 1, Machine 2 and Machine 3 + + ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png) + ### 4. Verify the Edgecluster in 'Cloud Core Node' (Node-A): kubectl get edgecluster From e298fc7a04c65b938392249c11ce8951b074e3cd Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:49:53 +0530 Subject: [PATCH 47/76] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6649399..fe06e24 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,9 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### Machine 2: Edge Node with Control Plane ### Machine 3: Edge Worker Node -## Do the following in all the three machines: +## Do the following steps in all the three machines for smoothly running the bash scripts: + +### Switch to root user: sudo -i ### Edit the sshd file to permit copy files within the Machines. From d99c9cfa4b76793f2480e2ee755be58a57297b5f Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:52:33 +0530 Subject: [PATCH 48/76] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe06e24..38c41bd 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,11 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png) -### 4. Verify the Edgecluster in 'Cloud Core Node' (Node-A): +### 4. Verify the Edgecluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster + + ### 5. To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax cat cloudcore.logs From f60feddd113e34153ffbbd7cb9fecaa9d9bb1426 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:54:11 +0530 Subject: [PATCH 49/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38c41bd..789bd9d 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### Virtual Machine Configuration -• Ubuntu 18.04, one for cloud-core, two for edge-core. +• **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core.** • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. From 3262996014039d7660734ed238bf86ef0225f26d Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:54:18 +0530 Subject: [PATCH 50/76] Create README.md From 76996f282c608b25566f476424a3c2c3b8ff2df5 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:57:33 +0530 Subject: [PATCH 51/76] Update README.md --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 789bd9d..d85130b 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,16 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### Virtual Machine Configuration -• **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core.** +• **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core. +• Machine 1: Cloud Core Node + Machine 2: Edge Node with Control Plane + Machine 3: Edge Worker Node** • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. -### Machine 1: Cloud Core Node -### Machine 2: Edge Node with Control Plane -### Machine 3: Edge Worker Node +#### Machine 1: Cloud Core Node +#### Machine 2: Edge Node with Control Plane +#### Machine 3: Edge Worker Node ## Do the following steps in all the three machines for smoothly running the bash scripts: @@ -44,8 +47,9 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### 4. Verify the Edgecluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster - - + ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) + + ### 5. To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax cat cloudcore.logs From 314f9547c9ad8c53e0eb60495d4b15f369cdc4e8 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:58:21 +0530 Subject: [PATCH 52/76] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d85130b..4a3aeec 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### Virtual Machine Configuration -• **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core. -• Machine 1: Cloud Core Node - Machine 2: Edge Node with Control Plane - Machine 3: Edge Worker Node** +• **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core.** +#### Machine 1: Cloud Core Node +#### Machine 2: Edge Node with Control Plane +#### Machine 3: Edge Worker Node** • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. From 3c1f8cd2820a389362539c80bbe290aeb3ba0eb2 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:59:04 +0530 Subject: [PATCH 53/76] Update README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4a3aeec..cfcb1e2 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,12 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ### Virtual Machine Configuration • **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core.** -#### Machine 1: Cloud Core Node -#### Machine 2: Edge Node with Control Plane -#### Machine 3: Edge Worker Node** • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. -#### Machine 1: Cloud Core Node -#### Machine 2: Edge Node with Control Plane -#### Machine 3: Edge Worker Node +#### Machine 1: Cloud Core Node +#### Machine 2: Edge Node with Control Plane +#### Machine 3: Edge Worker Node ## Do the following steps in all the three machines for smoothly running the bash scripts: From 421486088b72b6e8bdca3ab30f39a96b38af4729 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:01:38 +0530 Subject: [PATCH 54/76] Update README.md --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index cfcb1e2..719df48 100644 --- a/README.md +++ b/README.md @@ -15,39 +15,40 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ## Do the following steps in all the three machines for smoothly running the bash scripts: -### Switch to root user: - sudo -i +#### 1) Switch to root user: + sudo -i -### Edit the sshd file to permit copy files within the Machines. - vi /etc/ssh/sshd_config +#### 2) Edit the sshd file to permit copy files within the Machines. + vi /etc/ssh/sshd_config -### Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment. +#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment. ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) -### Now reload the sshd service - systemctl reload sshd.service -### Now set the root password for all the machines - passwd root +#### 4) Now reload the sshd service + systemctl reload sshd.service + +#### 5) Now set the root password for all the machines + passwd root ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) -### 3. Run the Scripts: +#### 6) Run the Scripts: sudo bash cloud-core.sh (for machine-1) sudo bash edge-node-control-plane.sh (for machine 2) (run the script only after successfully running the machine-1 script) sudo bash worker-node.sh (for machine 3) (run the script only after successfully running the machine-2 script) -### 2. Input the IP's of Machine 1, Machine 2 and Machine 3 +### 7) Input the IP's of Machine 1, Machine 2 and Machine 3 ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png) -### 4. Verify the Edgecluster in 'Cloud Core Node' (Machine-1): +### 8) Verify the Edgecluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) -### 5. To see Cloudcore & Edgecore logs: +### 9) To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax cat cloudcore.logs cat edgecore.logs From 96b5d8e180d068eb3c650adabdaf2924b39bfb47 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:02:26 +0530 Subject: [PATCH 55/76] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 719df48..a7a78a1 100644 --- a/README.md +++ b/README.md @@ -38,17 +38,17 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* sudo bash edge-node-control-plane.sh (for machine 2) (run the script only after successfully running the machine-1 script) sudo bash worker-node.sh (for machine 3) (run the script only after successfully running the machine-2 script) -### 7) Input the IP's of Machine 1, Machine 2 and Machine 3 +#### 7) Input the IP's of Machine 1, Machine 2 and Machine 3 ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png) -### 8) Verify the Edgecluster in 'Cloud Core Node' (Machine-1): +#### 8) Verify the Edgecluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) -### 9) To see Cloudcore & Edgecore logs: +#### 9) To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax cat cloudcore.logs cat edgecore.logs From 7db9f353c5fa93ac03ef0dd096b17ee1e4cc4a1d Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:03:16 +0530 Subject: [PATCH 56/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7a78a1..518e345 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 2) Edit the sshd file to permit copy files within the Machines. vi /etc/ssh/sshd_config -#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment. +#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file. ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) From c1495fc4a02064ce5adf11850fc3d11115402fdc Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:21:46 +0530 Subject: [PATCH 57/76] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 518e345..e78f093 100644 --- a/README.md +++ b/README.md @@ -28,21 +28,21 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 4) Now reload the sshd service systemctl reload sshd.service -#### 5) Now set the root password for all the machines +#### 5) Now set the similar root password for all the machines passwd root ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) #### 6) Run the Scripts: - sudo bash cloud-core.sh (for machine-1) - sudo bash edge-node-control-plane.sh (for machine 2) (run the script only after successfully running the machine-1 script) - sudo bash worker-node.sh (for machine 3) (run the script only after successfully running the machine-2 script) + sudo bash cloud-core.sh (Run in machine-1) + sudo bash edge-node-control-plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) + sudo bash worker-node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) -#### 7) Input the IP's of Machine 1, Machine 2 and Machine 3 +#### 7) Input the Private IP's of Machine 1, Machine 2 and Machine 3 - ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png) + ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png -#### 8) Verify the Edgecluster in 'Cloud Core Node' (Machine-1): +#### 8) Verify the Edge cluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) From 96580f585e503d0274ee86f11cb425126c39962d Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:22:23 +0530 Subject: [PATCH 58/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e78f093..aea40d0 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 8) Verify the Edge cluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster - ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) + ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) #### 9) To see Cloudcore & Edgecore logs: From 9d9f3fa8b56538ce852e801c8cec311f43dead01 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:22:49 +0530 Subject: [PATCH 59/76] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aea40d0..108206d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* passwd root ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) - + + #### 6) Run the Scripts: sudo bash cloud-core.sh (Run in machine-1) sudo bash edge-node-control-plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) From 20570b30a3811ca8983573da08cf4565a11ebc63 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:24:02 +0530 Subject: [PATCH 60/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 108206d..95bcf96 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 5) Now set the similar root password for all the machines passwd root - + ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) From 4e6ac760bda59b12b9707e0ec81ba5b34bab5689 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 12:37:44 +0530 Subject: [PATCH 61/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95bcf96..a4df8e3 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 7) Input the Private IP's of Machine 1, Machine 2 and Machine 3 - ![image](https://user-images.githubusercontent.com/95343388/151364344-0f45fa11-7ffe-414b-a2b4-2740d64b881d.png + ![image](https://user-images.githubusercontent.com/95343388/151502797-444c6570-8efe-45f4-9e0f-f8479c6c4a20.png) #### 8) Verify the Edge cluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster From 46fd190f7e94c367b700c6da790dd33874816930 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 12:38:43 +0530 Subject: [PATCH 62/76] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a4df8e3..74b971a 100644 --- a/README.md +++ b/README.md @@ -18,17 +18,17 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 1) Switch to root user: sudo -i -#### 2) Edit the sshd file to permit copy files within the Machines. +#### 2) Edit the sshd file to permit copy files within the Machines: vi /etc/ssh/sshd_config -#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file. +#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file: ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) -#### 4) Now reload the sshd service +#### 4) Now reload the sshd service: systemctl reload sshd.service -#### 5) Now set the similar root password for all the machines +#### 5) Now set the similar root password for all the machines: passwd root ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) @@ -39,7 +39,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* sudo bash edge-node-control-plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) sudo bash worker-node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) -#### 7) Input the Private IP's of Machine 1, Machine 2 and Machine 3 +#### 7) Input the Private IP's of Machine 1, Machine 2 and Machine 3: ![image](https://user-images.githubusercontent.com/95343388/151502797-444c6570-8efe-45f4-9e0f-f8479c6c4a20.png) From d5b580106dad56fa23b9192789fb940172513804 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Fri, 28 Jan 2022 15:25:11 +0530 Subject: [PATCH 63/76] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 74b971a..7ad0262 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,17 @@ # Edge Cluster Multi-Layer Setup using Bash Scripts + + ### Abstract + + The purpose of this document is to **automate setup of Cloud core and Edge core** , and install kubernetes, GoLang, and so on **using bash scripts**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. ### Virtual Machine Configuration + + + • **3 Ubuntu 18.04 VMs, one for cloud-core, two for edge-core.** • Open the port of 10000 and 10002 in the security group of the cloud-core machine and edge-core machine • 16 GB RAM, 16 vCPUs, 128 GB storage. @@ -15,6 +22,9 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ## Do the following steps in all the three machines for smoothly running the bash scripts: + + + #### 1) Switch to root user: sudo -i From 7b62d01eeef5014e6140cc7ddac2e6d53a808246 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:15:07 +0530 Subject: [PATCH 64/76] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ad0262..97be6fc 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,15 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) #### 4) Now reload the sshd service: + systemctl reload sshd.service #### 5) Now set the similar root password for all the machines: + passwd root - ![image](https://user-images.githubusercontent.com/95343388/151366134-be0a5fa0-9800-4d5c-981b-45c3fcf8b902.png) + ![image](https://user-images.githubusercontent.com/95343388/152106558-56ccd888-328b-4215-b67d-0f31ad4b1e76.png) + #### 6) Run the Scripts: From 7e745a06d4e8ef948342e42f2e5c83359ddc7f95 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:16:31 +0530 Subject: [PATCH 65/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97be6fc..711dc6e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file: - ![image](https://user-images.githubusercontent.com/95343388/151365629-77bf68bf-fce2-4303-8e7e-4fd68c0a7d0e.png) + ![image](https://user-images.githubusercontent.com/95343388/152106709-a9370a4d-8d82-4d66-8780-3a5e18fc0275.png) #### 4) Now reload the sshd service: From 6d01ec20012af83bca8fb2b5e0d5cc46c2223b92 Mon Sep 17 00:00:00 2001 From: Click2Cloud-palpha <95343388+click2cloud-palpha@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:20:06 +0530 Subject: [PATCH 66/76] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 711dc6e..a01dd0d 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* sudo bash edge-node-control-plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) sudo bash worker-node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) -#### 7) Input the Private IP's of Machine 1, Machine 2 and Machine 3: +#### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3: - ![image](https://user-images.githubusercontent.com/95343388/151502797-444c6570-8efe-45f4-9e0f-f8479c6c4a20.png) + ![image](https://user-images.githubusercontent.com/95343388/152107018-7a55eb0f-f5ea-4349-839b-08ed3fdcaecf.png) #### 8) Verify the Edge cluster in 'Cloud Core Node' (Machine-1): kubectl get edgecluster From b77ad05388a2148f1aec6e4d485b23a6c519b718 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Wed, 2 Feb 2022 17:51:21 +0530 Subject: [PATCH 67/76] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a01dd0d..26a8736 100644 --- a/README.md +++ b/README.md @@ -39,24 +39,25 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* systemctl reload sshd.service -#### 5) Now set the similar root password for all the machines: +#### 5) Now set the root password for all the machines: passwd root ![image](https://user-images.githubusercontent.com/95343388/152106558-56ccd888-328b-4215-b67d-0f31ad4b1e76.png) +### NOTE: 'prerequisite_package.sh' contains all the required packages for creating Kubernetes Cluster. #### 6) Run the Scripts: - sudo bash cloud-core.sh (Run in machine-1) - sudo bash edge-node-control-plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) - sudo bash worker-node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) + sudo bash cloudcore_node.sh (Run in machine-1) + sudo bash edgecore_control_plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) + sudo bash edge_worker_node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) #### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3: ![image](https://user-images.githubusercontent.com/95343388/152107018-7a55eb0f-f5ea-4349-839b-08ed3fdcaecf.png) -#### 8) Verify the Edge cluster in 'Cloud Core Node' (Machine-1): +#### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): kubectl get edgecluster ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) From 44fa70e0c8f6a2d1e69c43e9bb39123f7b34e3ee Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Wed, 2 Feb 2022 17:57:49 +0530 Subject: [PATCH 68/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 26a8736..06b7094 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3: - ![image](https://user-images.githubusercontent.com/95343388/152107018-7a55eb0f-f5ea-4349-839b-08ed3fdcaecf.png) + ![image](https://user-images.githubusercontent.com/95343388/152153562-e26d9ae9-6841-4c6d-ad5a-f4ce503b6a4a.png) #### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): kubectl get edgecluster From 306503dc069ca10c20d2c45fe5743a26d75a9467 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Wed, 2 Feb 2022 18:26:45 +0530 Subject: [PATCH 69/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 06b7094..ed89991 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* #### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3: - ![image](https://user-images.githubusercontent.com/95343388/152153562-e26d9ae9-6841-4c6d-ad5a-f4ce503b6a4a.png) + ![image](https://user-images.githubusercontent.com/95343388/152158030-2d2a26e9-71e9-4abd-8f04-0330424a32f6.png) #### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): kubectl get edgecluster From 6d8553458018d8f121d592095fb57b1b723cb89a Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Wed, 2 Feb 2022 18:49:16 +0530 Subject: [PATCH 70/76] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed89991..9afec61 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* sudo -i #### 2) Edit the sshd file to permit copy files within the Machines: + vi /etc/ssh/sshd_config #### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file: @@ -43,7 +44,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* passwd root - ![image](https://user-images.githubusercontent.com/95343388/152106558-56ccd888-328b-4215-b67d-0f31ad4b1e76.png) + ![image](https://user-images.githubusercontent.com/95343388/152161347-604d1b3a-3f27-44fe-9fef-8a3b2f8248bc.png) ### NOTE: 'prerequisite_package.sh' contains all the required packages for creating Kubernetes Cluster. @@ -58,12 +59,14 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* ![image](https://user-images.githubusercontent.com/95343388/152158030-2d2a26e9-71e9-4abd-8f04-0330424a32f6.png) #### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): + kubectl get edgecluster ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) #### 9) To see Cloudcore & Edgecore logs: + cd $HOME/go/src/github.com/fornax cat cloudcore.logs cat edgecore.logs From f67fb4a84a395586edf4f026013e08ed1347d3fc Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Wed, 2 Feb 2022 18:52:58 +0530 Subject: [PATCH 71/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9afec61..480c6c4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ The purpose of this document is to **automate setup of Cloud core and Edge core* kubectl get edgecluster - ![image](https://user-images.githubusercontent.com/95343388/151367806-e28dd3be-3cdd-4211-95b8-c3085dedc5c6.png) + ![image](https://user-images.githubusercontent.com/95343388/152162045-d6143680-14eb-470c-89c6-6f4a21e54414.png) #### 9) To see Cloudcore & Edgecore logs: From d2bb9e31f7dcd702706bd9537b781a877e9488e5 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:37:36 +0530 Subject: [PATCH 72/76] Update README.md --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 480c6c4..64596ad 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,6 @@ -### Abstract - - -The purpose of this document is to **automate setup of Cloud core and Edge core** , and install kubernetes, GoLang, and so on **using bash scripts**. Running Cloud core and Edge core and deployed mission and task to Edge node. Improve the Edge computing. This Cloud and Edge design is derived from cloud end to edge end for Edge System Functional Description and the Setup Requirements Specification. The intended user of this program is the edge computing user. - - ### Virtual Machine Configuration From bb5b9a9746c0f7a07bfac373f150b2163dbf243f Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:51:57 +0530 Subject: [PATCH 73/76] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 64596ad..ea5585f 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,20 @@ sudo bash edgecore_control_plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) sudo bash edge_worker_node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) -#### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3: +#### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3 : + + **For Machine 1** ![image](https://user-images.githubusercontent.com/95343388/152158030-2d2a26e9-71e9-4abd-8f04-0330424a32f6.png) + + **For Machine 2** + + + ![image](https://user-images.githubusercontent.com/95343388/152291760-fffbe61f-3158-4f3f-b225-e805c608849c.png) + + + #### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): kubectl get edgecluster From e038f4c9329f45302305be15683045dcf9303bf0 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:52:46 +0530 Subject: [PATCH 74/76] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ea5585f..a0c5fbf 100644 --- a/README.md +++ b/README.md @@ -64,11 +64,16 @@ #### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): + kubectl get edgecluster + + ![image](https://user-images.githubusercontent.com/95343388/152162045-d6143680-14eb-470c-89c6-6f4a21e54414.png) + + #### 9) To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax From 1d030c44ed2ad9c7bf91e0550974a96b52770ba0 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Thu, 3 Feb 2022 12:11:12 +0530 Subject: [PATCH 75/76] Update README.md --- README.md | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a0c5fbf..ca8e7c9 100644 --- a/README.md +++ b/README.md @@ -14,42 +14,22 @@ #### Machine 2: Edge Node with Control Plane #### Machine 3: Edge Worker Node -## Do the following steps in all the three machines for smoothly running the bash scripts: - - - - -#### 1) Switch to root user: - sudo -i - -#### 2) Edit the sshd file to permit copy files within the Machines: - - vi /etc/ssh/sshd_config - -#### 3) Remove comment '#' and modify the line 'PermitRootLogin yes' at line 32 and also modify line 56 to 'PasswordAuthentication yes' by removing comment in 'sshd_config' file: - - ![image](https://user-images.githubusercontent.com/95343388/152106709-a9370a4d-8d82-4d66-8780-3a5e18fc0275.png) -#### 4) Now reload the sshd service: +### NOTE: 'prerequisite_package.sh' contains all the required packages for creating Kubernetes Cluster. - systemctl reload sshd.service - -#### 5) Now set the root password for all the machines: - passwd root - - ![image](https://user-images.githubusercontent.com/95343388/152161347-604d1b3a-3f27-44fe-9fef-8a3b2f8248bc.png) - - -### NOTE: 'prerequisite_package.sh' contains all the required packages for creating Kubernetes Cluster. #### 6) Run the Scripts: + + sudo bash cloudcore_node.sh (Run in machine-1) sudo bash edgecore_control_plane.sh (Run in machine 2) (run the script only after successfully running the machine-1 script) sudo bash edge_worker_node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) + #### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3 : + **For Machine 1** ![image](https://user-images.githubusercontent.com/95343388/152158030-2d2a26e9-71e9-4abd-8f04-0330424a32f6.png) From 3118b4fdcebff712703a142ff99134cbfc339928 Mon Sep 17 00:00:00 2001 From: click2cloud-alpha-p <95343388+click2cloud-alpha-p@users.noreply.github.com> Date: Thu, 3 Feb 2022 12:11:41 +0530 Subject: [PATCH 76/76] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca8e7c9..ef514c3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ -#### 6) Run the Scripts: +#### Run the Scripts: sudo bash cloudcore_node.sh (Run in machine-1) @@ -27,7 +27,7 @@ sudo bash edge_worker_node.sh (Run in machine 3) (run the script only after successfully running the machine-2 script) -#### 7) Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3 : +#### Input the Private IP's and Password of Machine 1, Machine 2 and Machine 3 : **For Machine 1** @@ -42,7 +42,7 @@ -#### 8) Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): +#### Verify the Edge cluster by running command in 'Cloud Core Node' (Machine-1): kubectl get edgecluster @@ -54,7 +54,7 @@ -#### 9) To see Cloudcore & Edgecore logs: +#### To see Cloudcore & Edgecore logs: cd $HOME/go/src/github.com/fornax cat cloudcore.logs