Adds headscale app.

This commit is contained in:
2026-06-19 21:33:05 +00:00
parent 777bab792c
commit 761712ba71
11 changed files with 343 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
if [ -z "$AUTH_ID" ]; then
echo "Error: AUTH_ID is required"
exit 1
fi
if [ -z "$USER" ]; then
echo "Error: USER is required"
exit 1
fi
NAMESPACE=$(cat manifest.yaml | grep 'namespace:' | head -1 | awk '{print $2}')
echo "Registering node for user '$USER' with auth ID: $AUTH_ID"
kubectl exec -n "$NAMESPACE" deploy/headscale -- \
headscale auth register --auth-id "$AUTH_ID" --user "$USER"