fix: tailscale stale dir
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 15s
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 15s
This commit is contained in:
8
arty.yml
8
arty.yml
@@ -208,13 +208,17 @@ scripts:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Persist Tailscale state to network volume for stable IP across restarts
|
||||||
|
TAILSCALE_STATE="/workspace/.tailscale"
|
||||||
|
mkdir -p "$TAILSCALE_STATE"
|
||||||
|
|
||||||
echo " Starting Tailscale daemon..."
|
echo " Starting Tailscale daemon..."
|
||||||
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 &
|
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --statedir="$TAILSCALE_STATE" &
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
echo " Connecting to Tailscale network..."
|
echo " Connecting to Tailscale network..."
|
||||||
HOSTNAME="runpod-ai-orchestrator"
|
HOSTNAME="runpod-ai-orchestrator"
|
||||||
tailscale up --authkey="$TAILSCALE_AUTHKEY" --advertise-tags=tag:gpu --hostname="$HOSTNAME" --force-reauth || {
|
tailscale up --authkey="$TAILSCALE_AUTHKEY" --advertise-tags=tag:gpu --hostname="$HOSTNAME" || {
|
||||||
echo " ⚠ Tailscale connection failed, continuing without VPN"
|
echo " ⚠ Tailscale connection failed, continuing without VPN"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user