From 13abd58b7c1390a6f2e9021579fb168630eb7a4b Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Sun, 18 May 2025 15:28:57 -0700 Subject: [PATCH] Add helper node setup script. --- infrastructure_setup/setup_node.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 infrastructure_setup/setup_node.sh diff --git a/infrastructure_setup/setup_node.sh b/infrastructure_setup/setup_node.sh new file mode 100755 index 0000000..4e8b6a3 --- /dev/null +++ b/infrastructure_setup/setup_node.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e + +apt-get update + +# Longhorn requirements + +# Install iscsi on all nodes. +# apt-get install open-iscsi +# modprobe iscsi_tcp +# systemctl restart open-iscsi +kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.8.1/deploy/prerequisite/longhorn-iscsi-installation.yaml + +# Install NFSv4 client on all nodes. +# apt-get install nfs-common +kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.8.1/deploy/prerequisite/longhorn-nfs-installation.yaml + +apt-get install cryptsetup + +# To check longhorn requirements: +# curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.8.1/scripts/environment_check.sh | bash