Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# A script to automatically set up a new worker node, connect it to the WireGuard VPN,
# create a worker VM, and join it to the Kubernetes cluster.
# This script is IDEMPOTENT and can be re-run safely.
set -e
# --- Arguments ---
K8S_VERSION_ARG="$1"