Add Longhorn and hydra-1 and hydra-2 nodes

This commit is contained in:
Daniel Cosme
2026-04-25 18:15:23 -04:00
parent 3062b79fcb
commit c3ef84d4a9
11 changed files with 170 additions and 2 deletions

14
scripts/install_k3s_worker.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
echo HOST: $CLUSTER_HOST
echo USER: $LINUX_ADMIN
echo WORKER: $HYDRA_WORKER
NODE_TOKEN=$(ssh $LINUX_ADMIN@$CLUSTER_HOST "sudo cat /var/lib/rancher/k3s/server/node-token")
echo $NODE_TOKEN
# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --server https://k3s.example.com --token mypassword" sh -s -
# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent" K3S_TOKEN="mypassword" sh -s - --server https://k3s.example.com
# curl -sfL https://get.k3s.io | K3S_URL=https://k3s.example.com sh -s - agent --token mypassword
# curl -sfL https://get.k3s.io | K3S_URL=https://k3s.example.com K3S_TOKEN=mypassword sh -s - # agent is assumed because of K3S_URL