Last active
February 29, 2020 10:59
Revisions
-
gintsgints revised this gist
Feb 29, 2020 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,4 +48,12 @@ chmod +x k3s sudo mv k3s /usr/local/bin/k3s # connect to master sudo k3s agent --server https://master:6443 --token ${NODE_TOKEN} ``` # Uninstall To uninstall, as su user execute uinstall script: ``` /usr/local/bin/k3s-uninstall.sh ``` -
gintsgints revised this gist
Feb 29, 2020 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,14 @@ sudo apt-get upgrade -y apt-get install curl ``` # Install all nodes at /etc/hosts ``` 192.168.0.151 node1 192.168.0.152 node2 192.168.0.155 node3 ``` # Setup k3s master ``` @@ -34,6 +42,10 @@ sudo cat /var/lib/rancher/k3s/server/node-token https://github.com/rancher/k3s/releases/latest ``` wget https://github.com/rancher/k3s/releases/download/v1.17.3%2Bk3s1/k3s-arm64 mv k3s-arm64 k3s chmod +x k3s sudo mv k3s /usr/local/bin/k3s # connect to master sudo k3s agent --server https://master:6443 --token ${NODE_TOKEN} ``` -
gintsgints revised this gist
Feb 29, 2020 . 1 changed file with 15 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,11 +16,24 @@ sudo apt-get upgrade -y apt-get install curl ``` # Setup k3s master ``` curl -sfL https://get.k3s.io | sh - # Check for Ready node, takes maybe 30 seconds sudo k3s kubectl get node # get token for nodes sudo cat /var/lib/rancher/k3s/server/node-token ``` # Connect nodes ## Get latest binary https://github.com/rancher/k3s/releases/latest ``` # connect to master sudo k3s agent --server https://master:6443 --token ${NODE_TOKEN} ``` -
gintsgints created this gist
Feb 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # NanoPI install Use instructions - https://gist.github.com/gintsgints/8d049cf122c1f2e49c5805dbce0d4653 # Update system ``` # Update packages first sudo apt-get update sudo apt-get upgrade -y ``` # Install needed utlities ``` apt-get install curl ``` # Setup k3s ``` curl -sfL https://get.k3s.io | sh - # Check for Ready node, takes maybe 30 seconds k3s kubectl get node ```