Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Last active February 29, 2020 10:59

Revisions

  1. gintsgints revised this gist Feb 29, 2020. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions k3s_on_NanonPI.md
    Original 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
    ```
  2. gintsgints revised this gist Feb 29, 2020. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions k3s_on_NanonPI.md
    Original 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}
    ```
  3. gintsgints revised this gist Feb 29, 2020. 1 changed file with 15 additions and 2 deletions.
    17 changes: 15 additions & 2 deletions k3s_on_NanonPI.md
    Original file line number Diff line number Diff line change
    @@ -16,11 +16,24 @@ sudo apt-get upgrade -y
    apt-get install curl
    ```

    # Setup k3s
    # Setup k3s master

    ```
    curl -sfL https://get.k3s.io | sh -
    # Check for Ready node,
    takes maybe 30 seconds
    k3s kubectl get node
    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}
    ```
  4. gintsgints created this gist Feb 29, 2020.
    26 changes: 26 additions & 0 deletions k3s_on_NanonPI.md
    Original 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
    ```