Update worker_node_install.sh

This commit is contained in:
RomanNum3ral 2026-03-27 23:19:50 +00:00
parent 53402a93ed
commit 85e873bb09
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ set -Eeuo pipefail
########################################
RKE2_VERSION="${RKE2_VERSION:-v1.34.5+rke2r1}"
SERVER_URL="${SERVER_URL:-}"
RKE2_TOKEN="${RKE2_TOKEN:-}"
WORKER_NODE_NAME="${WORKER_NODE_NAME:-}"
SERVER_URL="${SERVER_URL:-htps://192.168.0.0:9345}"
RKE2_TOKEN="${RKE2_TOKEN:-}" # Get token from master sudo cat /var/lib/rancher/rke2/server/node-token
WORKER_NODE_NAME="${WORKER_NODE_NAME:-}" # Name the worker
START_RKE2="${START_RKE2:-true}"
RKE2_CONFIG_DIR="/etc/rancher/rke2"