Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Harisathwik committed Aug 21, 2023
1 parent 5f6a3ce commit 2ffa552
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
**Cluster Devices**
# **Cluster Devices**

With Pi OS installed drive connected to PC (Windows)

For Reference (https://youtu.be/X9fSMGkjtug)
Open *cmdline.txt* file (Setting Static IP for devices)
Append **cgroup_memory=1 cgroup_enable=memory ip=192.168.1.25::192.168.1.1:255.255.255.0:rpimaster:eth0:off** for ethernet
Append **cgroup_memory=1 cgroup_enable=memory ip=192.168.1.25::192.168.1.1:255.255.255.0:rpimaster:wlan0:off** for wifi (not sure wlan0 for wifi)
For Reference https://youtu.be/X9fSMGkjtug

Open *cmdline.txt* file (Setting Static IP for devices)

Structure of the command

cgroup_memory=1 cgroup_enable=memory ip=[ip-address-you-want-to-set]::[router-ip-address]:255.255.255.0:rpimaster:eth0:off

Append for ethernet

cgroup_memory=1 cgroup_enable=memory ip=192.168.1.25::192.168.1.1:255.255.255.0:rpimaster:eth0:off

Append for wifi (not sure wlan0 for wifi)

cgroup_memory=1 cgroup_enable=memory ip=192.168.1.25::192.168.1.1:255.255.255.0:rpimaster:wlan0:off for wifi

Open *config.txt*
Add **arm_64bit=1**
Open *config.txt* .Add

arm_64bit=1

Just add new file *ssh* with powershell command **new-item ssh**
Just add new file *ssh* with powershell command in the same directory.

new-item ssh

SSH into All Devices then execute and reboot

Expand All @@ -24,8 +38,11 @@ SSH into All Devices then execute and reboot
Execute for 1st Device

curl -sfL https://get.k3s.io | sh -
# Check for Ready node, takes ~30 seconds
sudo k3s kubectl get node (To get devices list)
**Check for Ready node, takes ~30 seconds**
(To get devices list)

sudo k3s kubectl get node

SAVE THE MASTER NODE NAME

cat /var/lib/rancher/k3s/server/node-token
Expand All @@ -36,6 +53,6 @@ For Rest of the devices on the same network
curl -sfL https://get.k3s.io | K3S_TOKEN="YOUR-SAVED-TOKEN" K3S_URL="https://[your server(static-ip)(192.168.1.25)]:6443" K3S_NODE_NAME="servername(NAME)" sh -
curl -sfL https://get.k3s.io | K3S_TOKEN="RANDOM-STRING::server:RANDOM-STRING" K3S_URL="https://192.168.1.25:6443" K3S_NODE_NAME="raspberrypi" sh -

In 1st Device
In 1st Device (To get devices list)

sudo k3s kubectl get node (To get devices list)
sudo k3s kubectl get node

0 comments on commit 2ffa552

Please sign in to comment.